复制和移动文件命令
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