Home » mariadb on ubuntu » UNIX/LINUX Command – fuser

UNIX/LINUX Command – fuser

Last updated Apr 25, 2021

NAME

fuser—Identify processes using files

SYNOPSIS

fuser [–a|–s][–signal][–kmuv] filename … [–][–signal][–kmuv] filename …
fuser [–l]

DESCRIPTION

fuser displays the PIDs of processes using the specified files or file systems. In the default display mode, each filename is followed by a letter denoting the type of access:

c            Current directory.
e            Executable being run.
f             Open file. f is omitted in default display mode.
r             Root directory.
m           mmap’ed file or shared library.

fuser returns a nonzero return code if none of the specified files is accessed or in case of a fatal error. If at least one access has been found, fuser returns zero.

OPTIONS

Options Description
–a Show all files specified on the command line. By default, only files that are accessed by at least one process are shown.
–k Kill processes accessing the file. Unless changed with -signal, SIGKILL is sent. A fuser process never kills itself, but may kill other fuser processes.
u List all known signal names.
–m filename specifies a file on a mounted file system or a block device that is mounted. All processes accessing files on that file system are listed. If a directory file is specified, it is automatically changed to filename/. to use any file system that might be mounted on that directory.
–s Silent operation. –a, –u, and –v are ignored in this mode.
–signal Use the specified signal instead of SIGKILL when killing processes. Signals can be specified either by name (for example, –HUP) or by number (for example, –1).
–u Append the username of the process owner to each PID.
–v Verbose mode. Processes are shown in a ps-like style. The fields PID, USER, and COMMAND are similar to ps.
ACCESS shows how the process accesses the file.
Reset all options and set the signal back to SIGKILL.

Related Posts

UNIX/LINUX Command – rsync

UNIX/LINUX Command – rsync

NAME rsync – a fast, versatile, remote (and local) file-copying tool rsync Command SYNOPSIS Local: rsync [OPTION…] SRC… [DEST] Access via remote shell:Pull: rsync [OPTION…] [USER@]HOST:SRC… [DEST]Push: rsync [OPTION…] SRC… [USER@]HOST:DEST Access via rsync...

UNIX/LINUX Command – strip

UNIX/LINUX Command – strip

NAME strip—Discard symbols from object files. SYNOPSIS strip [ -Fbfdname|–target=bfdname ] [ -Ibfdname|–input-target=bfdname ] [ -Obfdname|–output-target=bfdname ] [-Rsectionname|–remove-section=sectionname ] [ -s|–strip-all ] [-S|-g|–strip-debug ][-x|–discard-all...

UNIX/LINUX Command – expand

UNIX/LINUX Command – expand

NAME expand—Convert tabs to spaces SYNOPSIS expand [–tab1[,tab2[,…]]] [–t tab1[,tab2[,…]]] [–i] [—tabs=tab1[,tab2[,…]]] [–initial] [–help] [–version] [file…] DESCRIPTION This manual page documents the GNU version of expand. expand writes the contents of each given...

UNIX/LINUX Command – uuencode

UNIX/LINUX Command – uuencode

NAME uuencode—Encode a binary fileuudecode—Decode a file created by uuencode SYNOPSIS uuencode [-m] [ file ] nameuudecode [-o outfile] [ file ]… DESCRIPTION uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other...

Follow Us

Our Communities

The Ultimate Managed Hosting Platform
Load WordPress Sites in as fast as 37ms!

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

9 + nine =

Shares