%general-entities; ]> $Date$ lsof-&lsof-version; lsof Introduction to lsof The lsof package is useful to LiSt Open Files for a given running application or process. &lfs112_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &lsof-md5sum; Download size: &lsof-size; Estimated disk space required: &lsof-buildsize; Estimated build time: &lsof-time; lsof Dependencies Required Optional (with a symbolic link nc pointing to ncat in /usr/bin; used in tests) User Notes: Kernel Configuration To run the tests, the following option should be enabled in the kernel configuration: General setup ---> [*] POSIX Message Queues [CONFIG_POSIX_MQUEUE] Installation of lsof Install lsof by running the following commands: ./Configure -n linux && make The tests should be run as the root user. They require that the POSIX message queues are enabled in the kernel, and that be installed with a symbolic link /usr/bin/nc pointing to ncat. make check One test, case-20-ux-socket-endpoint, is known to fail. Other test may fail if the tests are run in a script. Now, as the root user: install -v -m4755 -o root -g root lsof /usr/bin && install -v lsof.8 /usr/share/man/man8 Command Explanations ./Configure -n linux: Avoid AFS, customization, and inventory checks, and use the linux dialect. install -m4755 ...: lsof should be suid root to allow users to list all files. This may be a security threat on some systems. In that case change to and use sudo to run the program. Contents Installed Program Installed Libraries Installed Directories lsof None None Short Descriptions lsof lists open files for running processes lsof