我有两个RHEL6.10服务器,其中/tmp经常被成千上万个文件填充,文件的名称如下
-rw-rw-r--. 1 root root 0 Feb 22 17:30 fileoQ1gE0
-rw-rw-r--. 1 root root 0 Feb 22 17:31 fileTFa0e7
-rw-rw-r--. 1 root root 0 Feb 22 17:32 fileSxEdEa
-rw-rw-r--. 1 root root 0 Feb 22 17:33 filegoLf6g
-rw-rw-r--. 1 root root 0 Feb 22 17:34 filebj3CJv
-rw-rw-r--. 1 root root 0 Feb 22 17:35 fileEVJerA
-rw-rw-r--. 1 root root 0 Feb 22 17:36 file5X9G3G
-rw-rw-r--. 1 root root 0 Feb 22 17:37 fileScyBJY
-rw-rw-r--. 1 root root 0 Feb 22 17:38 filePCq3K0
-rw-rw-r--. 1 root root 0 Feb 22 17:39 filePnBcVp
-rw-rw-r--. 1 root root 0 Feb 22 17:40 fileTbupIR
-rw-rw-r--. 1 root root 0 Feb 22 17:41 file4jmFGS
-rw-rw-r--. 1 root root 0 Feb 22 17:42 fileBP8HL0
-rw-rw-r--. 1 root root 0 Feb 22 17:43 fileb605If
-rw-rw-r--. 1 root root 0 Feb 22 17:44 file8Rubgm
-rw-rw-r--. 1 root root 0 Feb 22 17:45 file7UJEJr
-rw-rw-r--. 1 root root 0 Feb 22 17:46 filethKoZv
-rw-rw-r--. 1 root root 0 Feb 22 17:47 fileJEVJpL
-rw-rw-r--. 1 root root 0 Feb 22 17:48 filebeLOuP
-rw-rw-r--. 1 root root 0 Feb 22 17:49 fileN1VVJU
-rw-rw-r--. 1 root root 0 Feb 22 17:50 fileHO9fll
-rw-rw-r--. 1 root root 0 Feb 22 17:51 filejEj1Rq
-rw-rw-r--. 1 root root 0 Feb 22 17:52 fileMPnCWJRoot的crontab没有任何内容,有什么方法可以知道在这里创建文件是什么过程吗?即使它们是0字节,我也很困扰,因为我只是不知道为什么要创建它们。
发布于 2019-02-23 13:58:34
发布于 2019-02-23 14:29:45
也许一个快速的lsof|grep /tmp/file会释放出文件所属的PID?
https://serverfault.com/questions/955347
复制相似问题