且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-09-16 16:54:23



复制和移动文件命令

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