天天看點

菜鳥學Linux 第006篇筆記 根檔案系統2

複制和移動檔案指令

cp copy files and directories

 -i prompt before overwrite

 -r copy directories recursively

 -f if an existing destination file cannot be opened, remove it and try again

 -p preserve   the   specified   attributes

 -P never follow symbolic links(複制連接配接)

 -L always follow symbolic links(複制連接配接所指定的檔案)

 -a same as -dR --preserve=all(歸檔複制,常用于備份)

mv move (rename) files

 e.g mv SRC DEST

install copy files and set attributes

-d 建立目錄

-m set permission mode (as in chmod), instead of rwxr-xr-x

下回分解:

文本處理 cat, more, less, head, tail, cut, sort, uniq, grep

正規表達式

管道和重定向 > < >> <<

使用者、組、權限

bash極其特性

本文轉自Winthcloud部落格51CTO部落格,原文連結http://blog.51cto.com/winthcloud/1854069如需轉載請自行聯系原作者

Winthcloud

繼續閱讀