码迷,mamicode.com
首页 > 其他好文 > 详细

mv 命令

时间:2017-11-17 18:31:03      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:目标   重复   color   aaa   touch   bsp   nbsp   local   col   

 

[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 命令

标签:目标   重复   color   aaa   touch   bsp   nbsp   local   col   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!