[root@slave1 home]# jps
7798 -- process information unavailable
7081 -- process information unavailable
[root@slave1 home]# ps -ef|grep 7798
root 9312 7475 0 23:19 pts/2 00:00:00 grep --color=auto 7798
[root@slave1 home]# kill -9 7798
-bash: kill: (7798) - 没有那个进程
[root@slave1 home]# cd /tmp
[root@slave1 tmp]# ll
总用量 48
drwxr-xr-x. 2 root root 6 12月 14 19:24 06ae89a7-92e0-48eb-8c93-8cd65ccb7f21_resources
drwxrwxrwx. 3 root root 17 12月 13 18:17 hadoop-root
-rwxrwxrwx. 1 root root 5 12月 18 23:13 hadoop-root-datanode.pid
-rwxrwxrwx. 1 root root 5 12月 18 23:13 hadoop-root-namenode.pid
drwxr-xr-x. 4 root root 123 12月 14 19:35 hadoop-unjar1564047809770746623
drwxrwxrwx. 3 root root 19 12月 13 21:50 hbase-root
-rwxrwxrwx. 1 root root 6 12月 13 21:49 hbase-root-master.pid
-rwxrwxrwx. 1 root root 27 12月 13 21:50 hbase-root-master.znode
-rwxrwxrwx. 1 root root 6 12月 13 21:49 hbase-root-regionserver.pid
-rwxrwxrwx. 1 root root 37 12月 13 21:50 hbase-root-regionserver.znode
drwxrwxrwx. 2 root root 30 12月 14 03:47 hsperfdata_root
[root@slave1 hsperfdata_root]# ls
7081 7798
[root@slave1 hsperfdata_root]# rm /tmp/hsperfdata_root/7081
rm:是否删除普通文件 "/tmp/hsperfdata_root/7081"?y
[root@slave1 hsperfdata_root]# ls
7798
[root@slave1 hsperfdata_root]# rm /tmp/hsperfdata_root/7798
rm:是否删除普通文件 "/tmp/hsperfdata_root/7798"?y