commandPIDUSERFDtypeDEVICE SIZE NODE NAME 在这里插入图片描述 COMMAND列:打开文件的进程的名称。 PID列:打开文件的进程的标识符。 USER列:打开文件的进程的所有者。 FD列:打开文件的进程的文件描述符。 TYPE列:打开文件的类型,如REG(常规文件)、DIR(目录)、CHR(字符设备)、FIFO(管道)、SOCK(套接字)等。
# lsof -c ssh -c init COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 root txt REG 8,1 124704 917562 /sbin/init init 1 root mem REG 8,1 1434180 1442625 /lib/i386-linux-gnu/libc-2.13.so init 1 root mem REG 8,1 30684 1442694 /lib/i386-linux-gnu/librt-2.13.so .....
Thelsofcommand is a shortcut to List open files and shows the open files and which processes are using them. The lsof output describes several things, such as the identification number of the process that has opened the file, the process group identification number, the command the process is...
10 lsof Command Examples in Linux Linux lsof Command Tutorial for Beginners (10 Examples) 15 Linux lsof Command Examples (Identify Open Files)
COMMAND:进程的名称 PID:进程标识符 USER:进程所有者 FD:文件描述符,应用程序通过文件描述符识别该文件。如cwd、txt等 TYPE:文件类型,如DIR、REG等 DEVICE:指定磁盘的名称 SIZE:文件的大小 NODE:索引节点(文件在磁盘上的标识) NAME:打开文件的确切名称
Linux系统之lsof命令的基本使用 ● 一、lsof命令的基本使用 ● 二、lsof命令的使用帮助 ○ 2.1 lsof命令的help帮助信息 ○ 2.2 lsof命令帮助解释 ● 三、lsof的基本使用 ○ 3.1 直接使用lsof命令 ○ 3.2 查看某个进程打开的所有文件 ○ 3.3 查看某个用户打开的所有文件 ○ 3.4 查看某个文件被哪些进程...
Linux Command - lsof HOT TO TEST - lsof 1. --help root@localhost:/root> lsof -h lsof 4.78 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix...
我这边是加载的NFS,Linux都挂载到日志上了。 可能是这个原因吧?NFS网络挂载的。 linux中TOP命令显示出COMMAND进程名? top 后有一个 http://www.ibm.com/developerworks/cn/aix/library/au-lsof.html 大侠江 下午 03:48:40 lsof 显示的的COMMAND
# lsof-u rumenzCOMMANDPIDUSERFDTYPEDEVICESIZE/OFFNODENAMEsshd1838rumenz cwdDIR253,040962/sshd1838rumenz rtdDIR253,040962/sshd1838rumenz txtREG253,0532336188129/usr/sbin/sshd sshd1838rumenz memREG253,019784190237/lib/libdl-2.12.so sshd1838rumenz memREG253,0122436190247/lib/libselinux.so.1sshd1838...
lsof 是 List Open File 的缩写, 它主要用来获取被进程打开文件的信息,我们都知道,在Linux中,一切皆文件,lsof命令可以查看所有已经打开了的文件,比如: 普通文件,目录,特殊的块文件,管道,socket套接字,设备,Unix域套接字等等。系统在后台都为该应用程序分配了一个