linux - 在网络服务器上备份文件!和〜

标签 linux apache bash vim

我的 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/

相关文章:

bash - Jenkins sh 使用函数运行

c++ - 在 linux 中,如何在 bash 或 c 或 c++ 中观察窗口创建事件

android - 更新了 Jelly Bean Android Stack?

linux - 初始化脚本 '/dev/tty: No such device or address' 重定向错误

Apache Shiro 和 SSO

apache - 单击我网站上的链接时阻止发送引荐来源网址,但一个域除外

linux - 用于安装/更新 ffmpeg 静态构建的 bash 脚本

java - JBoss AS7 仅适用于 Linux 上的 http ://127. 0.0.1:8080

linux - MATLAB 无效的 MEX 文件错误 : missing symbol invalid_argument

apache - Tomcat 7.0 服务器启动问题