EnglishFrenchSpanish

Ad


OnWorks favicon

fuserposix - Online in the Cloud

Run fuserposix in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command fuserposix that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


fuser — list process IDs of all processes that have one or more files open

SYNOPSIS


fuser [−cfu] file...

DESCRIPTION


The fuser utility shall write to standard output the process IDs of processes running on
the local system that have one or more named files open. For block special devices, all
processes using any file on that device are listed.

The fuser utility shall write to standard error additional information about the named
files indicating how the file is being used.

Any output for processes running on remote systems that have a named file open is
unspecified.

A user may need appropriate privileges to invoke the fuser utility.

OPTIONS


The fuser utility shall conform to the Base Definitions volume of POSIX.1‐2008, Section
12.2, Utility Syntax Guidelines.

The following options shall be supported:

−c The file is treated as a mount point and the utility shall report on any files
open in the file system.

−f The report shall be only for the named files.

−u The user name, in parentheses, associated with each process ID written to
standard output shall be written to standard error.

OPERANDS


The following operand shall be supported:

file A pathname on which the file or file system is to be reported.

STDIN


Not used.

INPUT FILES


The user database.

ENVIRONMENT VARIABLES


The following environment variables shall affect the execution of fuser:

LANG Provide a default value for the internationalization variables that are unset or
null. (See the Base Definitions volume of POSIX.1‐2008, Section 8.2,
Internationalization Variables for the precedence of internationalization
variables used to determine the values of locale categories.)

LC_ALL If set to a non-empty string value, override the values of all the other
internationalization variables.

LC_CTYPE Determine the locale for the interpretation of sequences of bytes of text data
as characters (for example, single-byte as opposed to multi-byte characters in
arguments).

LC_MESSAGES
Determine the locale that should be used to affect the format and contents of
diagnostic messages written to standard error.

NLSPATH Determine the location of message catalogs for the processing of LC_MESSAGES.

ASYNCHRONOUS EVENTS


Default.

STDOUT


The fuser utility shall write the process ID for each process using each file given as an
operand to standard output in the following format:

"%d", <process_id>

STDERR


The fuser utility shall write diagnostic messages to standard error.

The fuser utility also shall write the following to standard error:

* The pathname of each named file is written followed immediately by a <colon>.

* For each process ID written to standard output, the character 'c' shall be written to
standard error if the process is using the file as its current directory and the
character 'r' shall be written to standard error if the process is using the file as
its root directory. Implementations may write other alphabetic characters to indicate
other uses of files.

* When the −u option is specified, characters indicating the use of the file shall be
followed immediately by the user name, in parentheses, corresponding to the real user
ID of the process. If the user name cannot be resolved from the real user ID of the
process, the real user ID of the process shall be written instead of the user name.

When standard output and standard error are directed to the same file, the output shall be
interleaved so that the filename appears at the start of each line, followed by the
process ID and characters indicating the use of the file. Then, if the −u option is
specified, the user name or user ID for each process using that file shall be written.

A <newline> shall be written to standard error after the last output described above for
each file operand.

OUTPUT FILES


None.

EXTENDED DESCRIPTION


None.

EXIT STATUS


The following exit values shall be returned:

0 Successful completion.

>0 An error occurred.

CONSEQUENCES OF ERRORS


Default.

The following sections are informative.

APPLICATION USAGE


None.

EXAMPLES


The command:

fuser −fu .

writes to standard output the process IDs of processes that are using the current
directory and writes to standard error an indication of how those processes are using the
directory and the user names associated with the processes that are using the current
directory.

fuser −c <mount point>

writes to standard output the process IDs of processes that are using any file in the file
system which is mounted on <mount point> and writes to standard error an indication of how
those processes are using the files.

fuser <mount point>

writes to standard output the process IDs of processes that are using the file which is
named by <mount point> and writes to standard error an indication of how those processes
are using the file.

fuser <block device>

writes to standard output the process IDs of processes that are using any file which is on
the device named by <block device> and writes to standard error an indication of how those
processes are using the file.

fuser −f <block device>

writes to standard output the process IDs of processes that are using the file <block
device> itself and writes to standard error an indication of how those processes are using
the file.

RATIONALE


The definition of the fuser utility follows existing practice.

FUTURE DIRECTIONS


None.

Use fuserposix online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 2
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 3
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 4
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 5
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 6
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • More »

Linux commands

  • 1
    abi-tracker
    abi-tracker
    abi-tracker - visualize ABI changes
    timeline of a C/C++ software library.
    DESCRIPTION: NAME: ABI Tracker
    (abi-tracker) Visualize ABI changes
    timeline of a C/C+...
    Run abi-tracker
  • 2
    abicheck
    abicheck
    abicheck - check application binaries
    for calls to private or evolving symbols
    in libraries and for static linking of
    some system libraries. ...
    Run abicheck
  • 3
    couriermlm
    couriermlm
    couriermlm - The Courier mailing list
    manager ...
    Run couriermlm
  • 4
    couriertcpd
    couriertcpd
    couriertcpd - the Courier mail server
    TCP server daemon ...
    Run couriertcpd
  • 5
    gbklatex
    gbklatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbklatex
  • 6
    gbkpdflatex
    gbkpdflatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbkpdflatex
  • More »

Ad