Quantcast
Channel: C++博客-所有随笔
Viewing all articles
Browse latest Browse all 7882

How to rename a file in Linux

$
0
0
//为什么 rename 不行

mv command renames the file named by the source operand to the destination path named by the target operand. mv command syntax:

Code:
mv {old-file-name {new-file-name} mv {old-dir-name} {new-dir-name}
Rename a file tom.txt to jerry.txt, type:
Code:
mv tom.txt jerry.txt
Rename a directory lgitech to logitech, enter:
Code:
mv lgitech logitech


多彩人生 2013-07-06 15:49 发表评论

Viewing all articles
Browse latest Browse all 7882

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>