3.lsof-to list open files The has lsof commands in many Linux or Unix-like systems, and it is often used to display all open files and processes as a list. Open files include disk files, network sockets, pipelines, devices, and processes . One of the main scenarios for using this command is when you cannot mount a disk and display an error message that you are using or opening a file. With this command, you can easily see which file is in use. The most common format for this command is as follows: # lsofcommand pid user fd type device size node nameinit 1 root cwd DIR 104,2 4096 2 /init 1 root rtd DIR 104,2 4096 2 /init 1 root txt reg 104,2 38652 17710339 /sbin/initinit 1 root mem REG 104,2 129900 196453 /lib/ld-2.5.soinit 1 root mem REG 104,2 1693812 196454 /lib/libc-2.5.soinit 1 root mem reg 104,2 20668 196479 /lib/libdl-2.5.soinit 1 root mem REG 104,2 245376 196419 /lib/ libsepol.so.1init 1 root mem REG 104,2 93508 196431 /lib/libselinux.so.1init 1 root 10u FIFO 0,17 953 /dev/initctl for more information on the use and examples of LSOF commands, refer to the following 10 examples of using the lsof command in Linux. |
Several people Translated over 2 years ago1 Person top Top translation of good Oh! |