尝试删除文件夹:
$ rm -r folder
rm: cannot remove 'folder/subfolder/cifscaf6': No such file or directory
不起作用。让我们尝试一下-f
:
$ rm -rf folder
rm: cannot remove 'folder/subfolder': Directory not empty
我相信该cifscaf6
文件是由 Java 应用程序(很可能被错误关闭)生成的,是某种临时文件。
我如何摆脱这个文件夹?
编辑:
还:
$ ls folder/subfolder/cifscaf6
ls: cannot access 'folder/subfolder/cifscaf6': No such file or directory
相当奇怪。
根据@mrc02_kr 的请求:
$ lsof folder
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/117/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 21509 olavur cwd DIR 0,42 0 1973196 .
lsof 114490 olavur cwd DIR 0,42 0 1973196 .
lsof 114491 olavur cwd DIR 0,42 0 1973196 .
根据@Elias的要求:
$ ls -la folder/subfolder
total 1024
drwxrwx--- 2 olavur [mount] 0 Sep 4 09:27 .
drwxrwx--- 2 olavur [mount] 0 Sep 4 09:27 ..
-rwxrwx--- 1 olavur [mount] 3508 Sep 4 09:12 cifscaf6
根据@rbanffy的要求:(
mount
除其他外提供):
//[domain path] on /mnt/some_mount type cifs (rw,relatime,vers=1.0,cache=strict,username=[username],domain=[DOMAIN NAME],uid=1004,forceuid,gid=1005,forcegid,addr=[IP],file_mode=0770,dir_mode=0770,nounix,mapposix,noperm,rsize=61440,wsize=65536,echo_interval=60,actimeo=1)
并cat /proc/version
给出:
Linux version 4.4.0-92-generic (buildd@lcy01-17) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017