Meaning lsof output of each column information is as follows:
COMMAND: name of the process
PID: the process identifier
PPID: parent identifier (parameter to specify -R)
USER: Process owners
PGID: the process belongs to the group
FD: file descriptor, the application file identified by the file descriptor. As cwd, txt etc.
(1) cwd: represents the current work dirctory, namely: the current working directory of the application, which is the application startup directory, unless it changes itself to this directory
(2) txt: the type of file is a program code, / sbin / init program such as an application binary itself or shared library, as shown in the list
(3)lnn:library references (AIX);
(4)er:FD information error (see NAME column);
(5) vol: jail directory (FreeBSD);
(6)ltx:shared library text (code and data);
(7)mxx :hex memory-mapped type number xx.
(8)m86:DOS Merge mapped file;
(9)mem:memory-mapped file;
(10)mmap:memory-mapped device;
(11)pd:parent directory;
(12)rtd:root directory;
(13)tr:kernel trace file (OpenBSD);
(14)v86 VP/ix mapped file;
(15) 0: standard output
(16) 1: standard input
(17) 2: standard error
Usually the standard output, standard error, after standard input mode state file also followed: r, w, u, etc.
(1) u: indicates the file is open in read / write mode
(2) r: indicates that the file is opened in read-only mode, and
(3) w: indicates the file is open and in
(4) blank: it shows a state mode of the file is unknow, and not locked
(5) -: indicates the status of the file mode is unknow, and locked
Meanwhile behind file state model, also followed by the associated lock
(1)N:for a Solaris NFS lock of unknown type;
(2)r:for read lock on part of the file;
(3)R:for a read lock on the entire file;
(4) w: for a write lock on part of the file; (file write lock portion)
(5) W: for a write lock on the entire file; (a write lock on the entire file)
(6)u:for a read and write lock of any length;
(7)U:for a lock of unknown type;
(8)x:for an SCO OpenServer Xenix lock on part of the file;
(9)X:for an SCO OpenServer Xenix lock on the entire file;
(10)space:if there is no lock.
TYPE: file types, such as DIR, REG and other common file types
(1) DIR: directory representation
(2) CHR: represents the character type
(3) BLK: block device type
(4) UNIX: UNIX domain socket
(5) FIFO: First In First Out (FIFO) queue
(6) IPv4: Internet Protocol (IP) sockets
DEVICE: Specifies the name of the disk
SIZE: size of the file
NODE: inode (file identifier on the disk)
NAME: Open the exact name of the file