fuser

 

最後更新: 2021-07-09

介紹

 

fuser - identify processes using files or sockets

 


Opts

 

  • -k, --kill                             # Unless changed with -SIGNAL, SIGKILL is sent.
  • -m NAME, --mount NAME    # NAME specifies a file on a mounted file system or a block device that is  mounted.
  • -i, --interactive
  • -u, --user              # Append the user name of the process owner to each PID.

 


Example

 

#

fuser /var/lib/lxc

/var/lib/lxc:        19956c

# kill process on mountpoint

fuser -mk /var/lib/lxc

#

fuser -u 22/tcp
 

Creative Commons license icon Creative Commons license icon