![删除的文件夹不断回来](https://linux22.com/image/48117/%E5%88%A0%E9%99%A4%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%8D%E6%96%AD%E5%9B%9E%E6%9D%A5.png)
我有一个/opt/splunk
我似乎无法摆脱的目录。
root@alpha:/opt# ls -la
total 87156
drwxr-xr-x 4 root root 4096 Feb 20 15:44 .
drwxr-xr-x 23 root root 4096 Feb 19 13:29 ..
drwxrwxrwx 3 root root 4096 Feb 20 15:23 data
drwx------ 4 root root 4096 Feb 20 15:45 splunk
-rw-r--r-- 1 root root 89224626 Dec 16 22:47 splunk-6.2.1-245427-linux-2.6-amd64.deb
我可以毫无错误地删除它似乎上班。
oot@alpha:/opt# rm -rf splunk
root@alpha:/opt# ls -la
total 87152
drwxr-xr-x 3 root root 4096 Feb 20 15:46 .
drwxr-xr-x 23 root root 4096 Feb 19 13:29 ..
drwxrwxrwx 3 root root 4096 Feb 20 15:23 data
-rw-r--r-- 1 root root 89224626 Dec 16 22:47 splunk-6.2.1-245427-linux-2.6-amd64.deb
但是,我仍然可以 cd 到它,它仍然包含以前的目录。
root@alpha:/opt# cd splunk
root@alpha:/opt/splunk# ls -la
total 12
drwx------ 3 root root 4096 Feb 20 15:46 .
drwxr-xr-x 4 root root 4096 Feb 20 15:46 ..
drwx------ 3 root root 4096 Feb 20 15:46 var
我什至可以删除目录,创建同名文件,删除文件,但旧文件夹仍然会回来!
root@alpha:/opt# ls -la
total 87156
drwxr-xr-x 4 root root 4096 Feb 20 15:46 .
drwxr-xr-x 23 root root 4096 Feb 19 13:29 ..
drwxrwxrwx 3 root root 4096 Feb 20 15:23 data
drwx------ 4 root root 4096 Feb 20 15:48 splunk
-rw-r--r-- 1 root root 89224626 Dec 16 22:47 splunk-6.2.1-245427-linux-2.6-amd64.deb
root@alpha:/opt# rm -rf splunk
root@alpha:/opt# touch splunk
root@alpha:/opt# ls -la
total 87152
drwxr-xr-x 3 root root 4096 Feb 20 15:48 .
drwxr-xr-x 23 root root 4096 Feb 19 13:29 ..
drwxrwxrwx 3 root root 4096 Feb 20 15:23 data
-rw-r--r-- 1 root root 0 Feb 20 15:48 splunk
-rw-r--r-- 1 root root 89224626 Dec 16 22:47 splunk-6.2.1-245427-linux-2.6-amd64.deb
root@alpha:/opt# rm splunk
root@alpha:/opt# ls -la
total 87152
drwxr-xr-x 3 root root 4096 Feb 20 15:48 .
drwxr-xr-x 23 root root 4096 Feb 19 13:29 ..
drwxrwxrwx 3 root root 4096 Feb 20 15:23 data
-rw-r--r-- 1 root root 89224626 Dec 16 22:47 splunk-6.2.1-245427-linux-2.6-amd64.deb
root@alpha:/opt# cd splunk
root@alpha:/opt/splunk# ls -la
total 12
drwx------ 3 root root 4096 Feb 20 15:48 .
drwxr-xr-x 4 root root 4096 Feb 20 15:48 ..
drwx------ 3 root root 4096 Feb 20 15:48 var
我快要疯了。有谁明白这里发生了什么?这是Debian。
root@alpha:/opt# cat /etc/debian_version
7.8
对评论的回应...
root@alpha:/opt/splunk# cd /opt/splunk ; df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/disk/by-uuid/830ee07d-3e7d-4d5e-a923-e998000f4a7c 10188088 1185164 8462356 13% /
答案1
根据修改日期,您可能会运行一些进程,该进程会再次创建您刚刚删除的文件和目录。