当前位置: 技术问答>linux和unix
帮我看看这个问题,
来源: 互联网 发布时间:2016-01-05
本文导语: Now there are two files named good.txt and bad.txt in the sub-directory test, how can you exchange the names of the two files? (交换两个文件的名字) | mv good.txt tmp11111111111.txt mv bad.txt good.txt mv tmp1...
Now there are two files named good.txt and bad.txt in the sub-directory test, how can you exchange the names of the two files?
(交换两个文件的名字)
(交换两个文件的名字)
|
mv good.txt tmp11111111111.txt
mv bad.txt good.txt
mv tmp11111111111.txt bad.txt
mv bad.txt good.txt
mv tmp11111111111.txt bad.txt