OpenSource For You

Lsof command

-

Lsof revision 4.86 lists, on its standard output file, informatio­n about files opened by processes for the following UNIX dialects: Apple Darwin 9 and Mac OS X 10 [567] FreeBSD 4.9 and 6.4 for x86-based systems FreeBSD 8.2, 9.0 and 10.0 for AMD64-based systems Linux 2.1.72 and above for x86-based systems Solaris 9, 10 and 11 An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file (Internet socket, NFS file or UNIX domain socket). Instead of a formatted display, lsof will produce output that can be parsed by other programs. In addition to producing a single output list, lsof will run in repeat mode, during which it will produce output, delay, then repeat the output operation until stopped with an interrupt or quit signal. asks the user whether to proceed with the entire operation. If the response is not in the affirmativ­e, the entire command is aborted. Using options ‘-r’ and ‘-f’ will remove the file forcefully without confirmati­on.

Newspapers in English

Newspapers from India