您的位置:首页 > 运维架构 > Linux

菜鸟学Linux 第006篇笔记 根文件系统2

2016-09-19 15:04 316 查看
复制和移动文件命令
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极其特性
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息