Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

258 head -5 af

259 mkdir dir2

260 cp myfile.txt /dir2.

261 cp myfile dir2

262 cp myfile.txt dir2

263 mv af dir2

264 echo "My name is Wang">test.txt

265 cmp myfile.txt test.txt

266 chmod 600 myfile.txt

267 chmod 660 test.txt

268 chmod 400 dir2

269 ls -l

270 history 30

271 history 90

272 history 10

273 echo 03/29 D1051933 Wang

274 mkdir 0329

275 cd 0329

276 echo "Hello" > file1

277 echo "Unix" > file 2

278 ls

279 mn file file2

280 mv file file2

281 ls

282 cat file1

283 cat file2

284 rm file2

285 ls

286 echo "Unix" > file2

287 cat file2


288 ls
289 cat file1 file2

290 cat file1 file2 > file3

291 cat file3

292 cat file1 file2 >> file3

293 cat file3

294 clear

295 cat file3 >& file4

296 cat file4

297 cat file5 >& file4

298 cat file4

299 tr love LOVE

300 history 30

301 grep "Unix" <file1 >file2

302 clear

303 echo "Hello again" >>file3

304 echo "Unix again" >>file3

305 cat file3

306 grep Hello file3

307 grep llo file3

308 wc file3

309 history 30

310 wc file3

311 clear

312 cat file3

313 cat file3 | grep Hello

314 cat file3 | grep Hello |wc -l

315 cat file3 | grep Hello |wc

316 clear

317 cat file3 | tee file4


318 cat file4

319 cat file4 | tr a-z A-Z

320 clear

321 cd ..
322 cd~

323 cd ~

324 cd 0329

325 echo "My name is Wang and ID is D1051933.">file1.txt

326 cat file1.txt

327 echo "Hi Unix.">file2.txt

328 echo "Hello Unix World!">>file2.txt

329 cat file2.txt

330 cat file3.txt

331 cat file1.txt file2.txt > file3.txt

332 cat file3.txt

333 cat file1.txt >>file3.txt

334 cat file3.txt

335 clear

336 cat file2.txt | tr A-Z a-z

337 grep Unix file3.txt | tee file4.txt

338 cat file4.txt

339 wc file3.txt

340 cat file3.txt | grep Unix |wc

341 grep name < file3.txt |wc -l

342 grep Unix file3.txt | wc

343 cat file3.txt | grep Hello |wc

344 cat file3.txt

345 grep Unix < file3.txt |wc -l

346 cat file3.txt | tee file5.txt

347 history 90

You might also like