Linux Advanced Command lsof using lsof (listopenfiles) is a tool used to list open files in the current system. In linux, everything exists in the form of a file. through a file, you can not only access common data, but also access network connections and hardware. Lsof outputs column information... Linux Advanced Command lsof use lsof (list open files) is a tool used to list open files in the current system. In linux, everything exists in the form of a file. through a file, you can not only access common data, but also access network connections and hardware. The significance of lsof output column information is as follows: COMMAND: Process name PID: Process identifier USER: Process owner FD: file descriptor. the application recognizes the file through the file descriptor. Types such as cwd and txt: file TYPE, such as DIR and reg device: specify the disk name size: file size node: index NODE (File ID on disk) NAME: the exact name of the opened file sof filename.txt shows the process lsof-I for opening the file filename.txt: 22. what program is running on port 22? lsof-c abc: The file opened by the abc process. lsof-g gid: the process that belongs to the gid. lsof + d/usr/local/is displayed in the directory. the file lsof + D/usr/local/opened by the process is the same as above, however, the system searches for directories in the directory, for a long time, lsof-d 4 shows that the process lsof-I with fd 4 is used to display qualified processes. lsof-I | grep "The process name" ps-ef | grep dbw "is obtained. process No. lsof-p 762
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service