Fuser (Unix)

Fuser (Unix)

fuser is a UNIX command used to show which processes are using a specified file, file system, or socket. For example: # fuser -m -u /mnt/usb1 /mnt/usb1: 1347c(root) 1348c(guido) 1349c(guido)

fuser displays the PIDs of processes using the specified files or filesystems. In the default display mode, each file name is followed by aletter denoting the type of access:

; c : current directory.; e : executable being run.; f : open file.; F : open file for writing. ; r : root directory.

fuser returns a non-zero code if none of the files isaccessed or in case of a fatal error. If at least one access has succeeded, fuser returns zero. The output of "fuser" may be useful in diagnosing "resource busy" messages arising when attempting to unmount filesystems.

Options

; -k : kills all process accessing a file. For example fuser -k /home/export/ganesh kills all processes accessing this directory without confirmation. Use -i for confirmation; -i : interactive mode. Prompt before killing process; -v : verbose.; -u : append username; -a : display all files

Also note that -k sends a SIGKILL to all process. Use the -signal to send a different signal. For a list of signals supported by the fuser run 'fuser -l'

Related commands

* The list of all open files and the processes that have them open can be obtained through the lsof command.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Fuser — bezeichnet die Fixiereinheit eines Laserdruckers oder Kopierers als fuser (Unix) einen Unix Befehl als Name Diego Fuser, einen italienischen Fußballspieler Diese Seite ist eine Begriffsklärung zur Un …   Deutsch Wikipedia

  • Fuser — The word fuser may refer to:* fuser, the part of a laser printer that melts the toner onto the medium * Fuser, a moniker used by Ernesto Che Guevara de la Serna, prior to his nickname Che * fuser (Unix), a Unix command which lists processes… …   Wikipedia

  • Fuser — Содержание 1 Синтаксис команды 2 Параметры 3 …   Википедия

  • fuser — Содержание 1 Синтаксис команды 2 Параметры 3 Примеры …   Википедия

  • date (Unix) — Unix date command The Unix date command displays the time and date. The super user can use it to set the system clock. Contents 1 Usage 2 Formatting …   Wikipedia

  • List of Unix utilities — This is a list of UNIX utilities as specified by IEEE Std 1003.1 2008, which is part of the Single UNIX Specification (SUS). These utilities can be found on UNIX Operating systems and most UNIX like operating systems. List IEEE Std 1003.1 2008… …   Wikipedia

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • Commande UNIX — Commandes Unix Les systèmes d exploitation de type UNIX offrent à leurs utilisateurs des centaines de commandes qui font de la console un outil pratique et extrêmement puissant. Certaines d entre elles sont fournies directement par le shell,… …   Wikipédia en Français

  • Commande Unix — Commandes Unix Les systèmes d exploitation de type UNIX offrent à leurs utilisateurs des centaines de commandes qui font de la console un outil pratique et extrêmement puissant. Certaines d entre elles sont fournies directement par le shell,… …   Wikipédia en Français

  • Commandes UNIX — Les systèmes d exploitation de type UNIX offrent à leurs utilisateurs des centaines de commandes qui font de la console un outil pratique et extrêmement puissant. Certaines d entre elles sont fournies directement par le shell, alors que d autres… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”