?????г?????μ????????
????#ls-l|grep"^p"
????????????
????prw-rw-r--1tecminttecmint0May1817:47pipe1
????prw-rw-r--1tecminttecmint0May1817:47pipe2
????prw-rw-r--1tecminttecmint0May1817:47pipe3
????prw-rw-r--1tecminttecmint0May1817:47pipe4
????prw-rw-r--1tecminttecmint0May1817:47pipe5
??????Linux?п??????mkfifo???????????????????????????????
????#mkfifopipe1
????#echo"Thisisnamedpipe1">pipe1
??????????????У?????????????????pipe1?????????????????echo????????Щ?????????????????????????shell?????????????LCTT?????????????????
???????????????????shell??????????????????????????????????????
????#whilereadline;doecho"Thiswaspassed-'$line'";done
??????????????socket?????????????????????????????????????????????е???????????????????
?????????????????????????????????????е??????????????????
???????socket???е???????????????????????????????????
????#ls-l/dev/|grep"^s"
????????????
????srw-rw-rw-1rootroot0May1810:26log
?????????????C?????д?????socket()????????????
????intsocket_desc=socket(AF_INET??SOCK_STREAM??0);
?????????У?
????· AF_INET?????????IPv4??
????· SOCK_STREAM????????????????TCPЭ???????
????· 0?Э?饗IPЭ?飩
???????socket_desc?????ù??????????????????????????????????????????read()??write()?????????????????д?????
?????????
?????????Щ???????????????????????????????????????????????????Linux??????????????/???????????????????
?????г?????μ????????
????#ls-l/|grep"^d"
????????????
drwxr-xr-x2rootroot4096May515:49bin
drwxr-xr-x4rootroot4096May515:58boot
drwxr-xr-x2rootroot4096Apr112015cdrom
drwxr-xr-x17rootroot4400May1810:27dev
drwxr-xr-x168rootroot12288May1810:28etc
drwxr-xr-x3rootroot4096Apr112015home
drwxr-xr-x25rootroot4096May515:44lib
drwxr-xr-x2rootroot4096May515:44lib64
drwx------2rootroot16384Apr112015lost+found
drwxr-xr-x3rootroot4096Apr102015media
drwxr-xr-x3rootroot4096Feb2317:54mnt
drwxr-xr-x16rootroot4096Apr3016:01opt
dr-xr-xr-x223rootroot0May1815:54proc
drwx------19rootroot4096Apr911:12root
drwxr-xr-x27rootroot920May1810:54run
drwxr-xr-x2rootroot12288May515:57sbin
drwxr-xr-x2rootroot4096Dec12014srv
dr-xr-xr-x13rootroot0May1815:54sys
drwxrwxrwt13rootroot4096May1817:55tmp
drwxr-xr-x11rootroot4096Mar3116:00usr
drwxr-xr-x12rootroot4096Nov122015var
?????????????mkdir?????????????????
????#mkdir-m1666tecmint.com
????#mkdir-m1666news.tecmint.com
????#mkdir-m1775linuxsay.com
????????
???????????????Linux??????ж?????????Linux???п????????Щ????????????????????????
?????????????????????й???????????????o?????????????????????????????????????????????????????κ???????в?????????????????????????????