您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > linux培训系列第二讲
rrktqtLinuxLinuxFilesystemHierarchyStandardFHSLinuxLinuxshellLinuxLinuxLinux:Linux://rrktqt.discuz.net1/672007-01-26PoweredbyX-SpacerrktqtLinuxglob[][^]*FHSFHSFHS/usrPATHPATHwhichwhich-awhereisfindfindfindfindfindfindmtime-daystart-sizeupdatedbslocatexeyesfgbg&SIGTERMSIGINTkillnohuppsulpstop://rrktqt.discuz.net3/672007-01-26PoweredbyX-SpacerrktqtLinux:2007-01-2622:02:44regexregexpLinux-:2007-01-2622:03:34:2007-01-2622:04:08grepgrep$grepbash/etc/passwdoperator:x:11:0:operator:/root:/bin/bashroot:x:0:0::/root:/bin/bashftp:x:40:1::/home/ftp:/bin/bashgrepgrep/etc/passwdbashgrep:2007-01-2622:04:41+.*[]\/tmp/tmp\[box\][box]\*funny\**funny*ld\.sold.so:2007-01-2622:05:15.$grepdev.hda/etc/fstab/dev/hda3/reiserfsnoatime,ro11/dev/hda1/bootreiserfsnoauto,noatime,notail12/dev/hda2swapswapsw00#/dev/hda4/mnt/extrareiserfsnoatime,rw11dev.hda/etc/fstabgrepdev.hdadev.hda..glob?[]:2007-01-2622:05:52.[]$grepdev.hda[12]/etc/fstab/dev/hda1/bootreiserfsnoauto,noatime,notail12/dev/hda2swapswapsw00glob[]glob[^]:2007-01-2622:06:21[^[^]glob[!]$grepdev.hda[^12]/etc/fstab/dev/hda3/reiserfsnoatime,ro11#/dev/hda4/mnt/extrareiserfsnoatime,rw11:2007-01-2622:06:54..12\./etc/fstabdev.hda$grepdev[.]hda/etc/fstab$grepdev\.hda/etc/fstab/etc/fstab*:2007-01-2622:07:25*ab*cabbbbcabqcab*cabcabbqbbcab*caccbab[cq]*ebqeebb[cq]*ebccqqebcccb[cq]*ebqqccecqeb[cq]*ebbbeee.*foo.*fooacab*cb**glob:2007-01-2622:07:56^$^^##$grep^#/etc/fstab#/etc/fstab:staticfilesysteminformation.#:2007-01-2622:08:27^$#.$grep'^#.*\.$'/etc/fstab#/etc/fstab:staticfilesysteminformation.shell$grep$$:2007-01-2622:09:45FilesystemHierarchyStandardLinuxFHSFHSFHS//boot/dev/etc/lib/mnt/opt/sbin/tmp/usr/var:2007-01-2622:10:21FHSFHS+---------+-----------------+-------------+||||+---------+-----------------+-------------+||/usr|/etc|||/opt|/boot|+---------+-----------------+-------------+||/var/mail|/var/run|||/var/spool/news|/var/lock|+---------+-----------------+-------------+:2007-01-2622:11:04/usr/usrCD-ROMLinux/usr/usrFilesystemHierarchyStandardLinux:2007-01-2622:11:36LinuxLinux:2007-01-2622:12:14bashlsbashls/usr/binbashPATHPATH$echo$PATH/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/binPATHbash/usr/local/bin/use/binlsls/usr/binbash:2007-01-2622:12:46PATH$PATH=$PATH:~/bin$echo$PATH/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/home/agriffis/binPATH$PATHPATH$PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:~/bin$echo$PATH/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/agriffis/bin:2007-01-2622:13:17whichPATHLinuxsense$whichsensewhich:nosensein(/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin)ls$whichls/usr/bin/ls:2007-01-2622:13:47-awhichPATH$which-als/usr/bin/ls/bin/ls:2007-01-2622:14:22whereis$whereislsls:/bin/ls/usr/bin/ls/usr/share/man/man1/ls.1.gzls/bin/usr/bin/usr/share/manmanlswhereis:2007-01-2622:14:51findfind/usr/share/docREADME$find/usr/share/doc-nameREADME/usr/share/doc/ion-20010523/README/usr/share/doc/bind-9.1.3-r6/dhcp-dynamic-dns-examples/README/usr/share/doc/sane-1.0.5/README:2007-01-2622:15:23-nameglobfindbashREADME$find/usr/share/doc-nameREADME\*/usr/share/doc/iproute2-2.4.7/README.gz/usr/share/doc/iproute2-2.4.7/README.iproute2+tc.gz/usr/share/doc/iproute2-2.4.7/README.decnet.gz/usr/share/doc/iproute2-2.4.7/examples/diffserv/README.gz/usr/share/doc/pilot-link-0.9.6-r2/R
本文标题:linux培训系列第二讲
链接地址:https://www.777doc.com/doc-959171 .html