Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> Unix基礎知識

Linux 常見教程(4)

權限、搜尋與內容擷取

mv -f 為無條件覆蓋檔案。權限表示法中,u、g、o 分別代表擁有者、群組與其他用戶,+/- 表示允許或禁止,r、w、x 則代表讀取、寫入與執行。

find 搭配範例:find / -name "pass*" -user "root" -exec cp {} /home/abc \;,其中依序為名稱、所有權、執行命令,並以 \; 作結束。

內容檢視常用:less 與 cat 看全文;head 與 tail 取摘選;cut 擷取欄位;grep 按關鍵字擷取。

Copyright © Linux教程網 All Rights Reserved