Special files and processes
fuser command
[root @ localhost Home] # fuser - MUV. User privileges command process ID / Home: root Kernel Mount (root) / Home root 14620 ..c .. (root) bash
Find all programs use a directory
Then again if you umount, you can kill him, so that no device is busy. I encountered this problem before. I remember also reflected in the previous essay, I did not know how to do. Now know, just need to find a program to use the directory in the current directory, then you can kill
fuse command, you can find a directory, file, which is used in the process, so there is no phenomenon that the file is in use and can not be operated
lsof lists the documentation directory information be open process
Bird brother, do with a vsftpd example, then we come along
[root @ localhost ~] # yum install vsftpd- 3 * Loaded plugins: fastestmirror, the Langpacks Loading Mirror SPEEDS from cached hostfile * Base: mirrors.aliyun.com * Extras: mirrors.aliyun.com * the Updates: mirrors.zju.edu .cn package vsftpd - 3.0 . 2 - 25 .el7.x86_64 installed and the latest version without any treatment [root @ localhost ~ ] # systemctl start vsftpd start service [root @ localhost ~ ] # systemctl enable vsftpd boot Created symlink from/etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service. [root@localhost ~]# netsata -tlnp bash: netsata: 未找到命令... [root@localhost ~]# netstat -tlnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 8138/X tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 8598/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 7675/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 7677/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 8037/master tcp6 0 0 :::111 :::* LISTEN 1/systemd tcp6 0 0 :::6000 :::* LISTEN 8138/ The X- tcp6 0 0 ::: 21 ::: * LISTEN 25234 / vsftpd # 21 shown here the port has been opened, indicating that the service has started tcp6 0 0 ::: 22 ::: * LISTEN 7675 / sshd tcp6 0 0 :: 1 : 631 ::: * LISTEN 7677 / cupsd tcp6 0 0 :: 1 : 25 :::* LISTEN 8037/master