[英]Accidentally created directory with period . character
Don't ask how, but I've somehow created a directory name with a single period character (.) and, as that is a special character for directory navigation, I have no idea how to remove it!不要问我怎么做的,但我以某种方式创建了一个带有单个句点字符 (.) 的目录名称,因为这是目录导航的特殊字符,我不知道如何删除它!
drwxr-xr-x 6 admin admin 4096 Nov 30 14:16 ./
drwxr-xr-x 6 root root 4096 May 18 2022 ../
-snipped output-
drwxr-xr-x 2 admin users 4096 Nov 30 14:10 ./ <-- this one
Any ideas?有任何想法吗? Thank you谢谢
It's not the same dot as .
它与 不同.
, it's Unicode's FULLWIDTH FULL STOP . ,它是 Unicode 的FULLWIDTH FULL STOP 。 Just copy & paste the name to rmdir
:只需将名称复制并粘贴到rmdir
:
rmdir .
Or use something that understands unicode names:或者使用可以理解 unicode 名称的东西:
perl -e 'rmdir "\N{FULLWIDTH FULL STOP}" or die $!'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.