Linux common commands-60: lsof

The lsof command is used to obtain information about files opened by a process. In linux , everything is a file. The lsof command can view all opened files, such as: ordinary files, directories, special block files, pipes, socket sockets, devices, Unix domain sockets, etc. lsof needs to be executed as root user.

Syntax format: lsof [parameter] [file]

Common parameters:

Example

 lsof

This article is reprinted from https://xugaoxiang.com/2022/06/16/linux-cmds-60-lsof/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.