首页 > 其他 > 详细

mv 命令

时间:2017-11-17 18:06:49      阅读:226      评论:0      收藏:0      [点我收藏+]

 

[root@localhost soft]# touch 1.txt 
[root@localhost soft]# 
[root@localhost soft]# ls
1.txt
[root@localhost soft]# mv 1.txt  2.txt  //重命名文件
[root@localhost soft]# ls
2.txt
[root@localhost soft]# 



 
[root@localhost soft]# mv 2.txt  ../aaa/  //移动文件 
[root@localhost soft]# ls
[root@localhost soft]# ls ../aaa/
2.txt

 

     -f    若目标文件或目录与现有的文件或目录重复,则直接覆盖现有的文件或目录 

mv 命令

原文:http://www.cnblogs.com/mingerlcm/p/7852686.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!