Linux 文件复制和移动

复制文件和目录

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

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

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

 文件移动

 * ?通配符

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

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

猜你喜欢

转载自www.cnblogs.com/Brake/p/12169094.html