- && 을 이용하여 명령을 순서대로 실핼할 수 있다.
bhyoo@DESKTOP-MQPJ46K:~/zoo$ ls
birds mammals reptiles
bhyoo@DESKTOP-MQPJ46K:~/zoo$ cd birds/ && touch eagle.txt && cd ..
bhyoo@DESKTOP-MQPJ46K:~/zoo$ ls birds/
eagle.txt
- ln [src] [dst] : 심볼릭 링크 생성
bhyoo@DESKTOP-MQPJ46K:~/zoo$ ln -s birds/eagle.txt strongestAnimal.txt
bhyoo@DESKTOP-MQPJ46K:~/zoo$ ls -l
total 0
drwxr-xr-x 1 bhyoo bhyoo 512 Jan 10 15:37 birds
drwxr-xr-x 1 bhyoo bhyoo 512 Jan 10 15:40 mammals
drwxr-xr-x 1 bhyoo bhyoo 512 Jan 10 15:39 reptiles
lrwxrwxrwx 1 bhyoo bhyoo 15 Jan 10 15:41 strongestAnimal.txt -> birds/eagle.txt
bhyoo@DESKTOP-MQPJ46K:~$ find . -name eagle.txt
./zoo/birds/eagle.txt
bhyoo@DESKTOP-MQPJ46K:~$ find . -empty
./.landscape/sysinfo.log
./.motd_shown
./Documents
./Downloads
./Images
./Videos
./zoo/birds/eagle.txt
./zoo/mammals/koala.txt
./zoo/reptiles/trex.txt
- head [filename]: 파일의 첫 10라인을 출력
bhyoo@DESKTOP-MQPJ46K:~$ head workers.csv
1,Area of Expertise,Name,Hourly Rate,Favorite Number,38.94,35,Nunavut,Storage & Organization,Compression Score
44,Avery 49,Aaron Bergman,4132,1.32,2.88,0.5,Nunavut,Labels,0.36
64,Boston Electric Pencil Sharpener Model 1818 Charcoal Black,Adrian Hane,6535,-19.33,28.15,8.99,Nunavut,Pens & Art Supplies,0.57
33,Self-Adhesive Address Labels for Typewriters by Universal,Alan Barnes,2532,140.01,7.31,0.49,Nunavut,Labels,0.38
34,Accessory37,Alan Barnes,2532,-78.96,20.99,2.5,Nunavut,Telephones and Communication,0.81
89,Avery 506,Alan Barnes,2532,75.13,4.13,0.5,Northwest Territories,Labels,0.39
17,"#10-4 1/8"" x 9 1/2"" Premium Diagonal Seam Envelopes",Allen Rosenblatt,998,93.8,15.74,1.39,Nunavut,Envelopes,0.4
67,Crate-A-Files™,Andrew Gjertsen,6916,-141.27,10.9,7.46,Nunavut,Storage & Organization,0.59
56,Avery Arch Ring Binders,Ann Chong,5894,87.68,58.1,1.49,Nunavut,Binders and Binder Accessories,0.38
57,APC 7 Outlet Network SurgeArrest Surge Protector,Ann Chong,5894,-68.22,80.48,4.5,Nunavut,Appliances,0.55
- cat [filename]: 파일내용 전체출력
- grep [needle] [filename] : 파일내용 검색
bhyoo@DESKTOP-MQPJ46K:~$ grep "carlos" workers.csv -i
13,Holmes HEPA Air Purifier,Carlos Daly,868,134.72,21.78,5.94,Nunavut,Appliances,0.5
14,DS/HD IBM Formatted Diskettes 200/Pack - Staples,Carlos Daly,868,114.46,47.98,3.61,Nunavut,Computer Peripherals,0.71
5,Holmes HEPA Air Purifier,Carlos Soltero,515,30.94,21.78,5.94,Nunavut,Appliances,0.5
6,G.E. Longer-Life Indoor Recessed Floodlight Bulbs,Carlos Soltero,515,4.43,6.64,4.95,Nunavut,Office Furnishings,0.37
22,Avery 52,Carlos Soltero,515,26.92,3.69,0.5,Nunavut,Labels,0.38
23,Plymouth Boxed Rubber Bands by Plymouth,Carlos Soltero,515,-5.77,4.71,0.7,Nunavut,Rubber Bands,0.8
29,Tenex Personal Project File with Scoop Front Design Black,Carlos Soltero,515,-5.45,13.48,4.51,Nunavut,Storage & Organization,0.59
※ 파이프라인( | )을 이용하여 검색도 가능
bhyoo@DESKTOP-MQPJ46K:~$ cat workers.csv | grep "Carlos"
13,Holmes HEPA Air Purifier,Carlos Daly,868,134.72,21.78,5.94,Nunavut,Appliances,0.5
14,DS/HD IBM Formatted Diskettes 200/Pack - Staples,Carlos Daly,868,114.46,47.98,3.61,Nunavut,Computer Peripherals,0.71
5,Holmes HEPA Air Purifier,Carlos Soltero,515,30.94,21.78,5.94,Nunavut,Appliances,0.5
6,G.E. Longer-Life Indoor Recessed Floodlight Bulbs,Carlos Soltero,515,4.43,6.64,4.95,Nunavut,Office Furnishings,0.37
22,Avery 52,Carlos Soltero,515,26.92,3.69,0.5,Nunavut,Labels,0.38
23,Plymouth Boxed Rubber Bands by Plymouth,Carlos Soltero,515,-5.77,4.71,0.7,Nunavut,Rubber Bands,0.8
29,Tenex Personal Project File with Scoop Front Design Black,Carlos Soltero,515,-5.45,13.48,4.51,Nunavut,Storage & Organization,0.59