Linux 文件复制和移动

复制文件和目录

 

 a是目录需要增加-r参数

 

touch 创建文件。-v 展示copy过程

 

 -p 保留原有文件的创建时间等信息

 

 

 文件移动

 mv 移动或者给改名字。

 * ?通配符

 

ls  /tmp/file* 列出tmp文件夹下以file开头的文件或者文件夹

ls  /tmp/file? 列出filea,fileb。。。fileab不会列出

posted @ 2020-01-08 22:40  xuan_wu  阅读(386)  评论(0编辑  收藏  举报