pwd [-p]
-p 顯示確實的路徑,而非使用鏈結(link)路徑
單純顯示出目前的工作目錄:
[root@www ~]# pwd
/root <== 顯示出目錄啦~
列表內容
顯示出實際的工作目錄,而非鏈結檔案本身的目錄名而已
[root@www ~]# cd
/var/mail <==注意,/var/mail是乙個鏈結檔
[root@www mail]# pwd /var/mail <==列出目前的工作目錄
[root@www mail]# pwd -p /var/spool/mail <==怎麼回事?有沒有加 -p 差很多~
[root@www mail]# ls -ld /var/mail
lrwxrwxrwx 1 root root 10 sep 4 17:54
/var/mail -> spool/mail # 看到這裡應該知道為啥了吧?因為 /var/mail 是鏈結檔,鏈結到 /var/spool/mail # 所以,加上 pwd -p 的選項後,會不以鏈結檔案的資料顯示,而是顯示正確的完整路徑啊!
每天一指令
cd 選項 引數 l 如果要切換的目標目錄是乙個符號的連線,直接切換到字元連線名代表的目錄,而非符號連線所指向的目標目錄。p 如果要切換到的目標目錄是乙個符號連線,直接切換到符號連線指向的目標目錄 root www cd 相對路徑或絕對路徑 最重要的就是目錄的絕對路徑與相對路徑,還有一些特殊目錄的符...
每天一指令
mv fiu source destination mv options source1 source2 source3 directory f force 強制的意思,如果目標檔案已經存在,不會詢問而直接覆蓋 i 若目標檔案 destination 已經存在時,就會詢問是否覆蓋!u 若目標檔案已經...
每天一指令
less 檔名 無 root www less etc man.config generated automatically from man.conf.in by the configure script.man.conf from man 1.6d 中間省略 這裡可以等待你輸入指令!空格鍵 向下...