重命名“."Ubuntu中的文件 [英] Renaming a '.' file in Ubuntu
本文介绍了重命名“."Ubuntu中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用rsync下载了一个文件,并将其目的地意外地设置为.".(我认为这是要下载到的目录).因此,它下载了多演出文件,但将其命名为.".
I downloaded a file using rsync and accidentaly provided it the destination as '.' (I thought it is the directory to download into). So it downloaded the multi-gig file but named it '.'.
drwxr-sr-x 2 root apache 4096 May 7 00:42 .
drwxr-sr-x 7 me apache 4096 May 7 00:25 ..
-rw-r--r-- 1 1006 1006 2008805206 Apr 5 04:49 .
-rw------- 1 root apache 1675 May 7 00:25 somefile
-rw------- 1 root apache 392 May 7 00:26 anotherfile.txt
如何重命名2GB +'.提出有意义的建议.我似乎没什么用(我尝试过MV,重命名等),但是他们都说
How do I rename the 2GB+ '.' file to something meaningful. Nothing I do seems to work (i've tried mv, rename, etc.) but they all say
Device or resource busy
推荐答案
您可以使用此mv:
mv ./.[[:blank:]]* myfile
否则尝试以下查找:
find . -type f -maxdepth 1 -name '. *' -exec mv '{}' myfile \;
这篇关于重命名“."Ubuntu中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文