我的 LAMP 网络服务器呈现如下备份文件:
!index.php
!~index.php
bak.index.php
复制%20of%20index.php
我尝试使用 rm
删除,但找不到文件。
这与 bash 或 vim 有关系吗?如何解决?
最佳答案
像这样转义字符(使用反斜杠):
[ 09:55 jon@hozbox.com ~/t ]$ ll
total 0
-rw-r--r-- 1 jon people 0 Nov 27 09:55 !abc.html
-rw-r--r-- 1 jon people 0 Nov 27 09:55 ~qwerty.php
[ 09:55 jon@hozbox.com ~/t ]$ rm -v \!abc.html \~qwerty.php
removed '!abc.html'
removed '~qwerty.php'
[ 09:56 jon@hozbox.com ~/t ]$ ll
total 0
[ 09:56 jon@hozbox.com ~/t ]$
关于linux - 在网络服务器上备份文件!和〜,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8287605/