FreeBSD Install lsof To Displays Information About Files Open to Unix processes
Q. How do I install the free, open-source, Unix administrative tool called lsof (for LiSt Open Files) under FreeBSD operating system to displays information about files open to Unix processes?
A. lsof lists information about files opened by processes
for the varios UNIX dialects. 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.) A specific file or all the files in a file system may be selected by path.
FreeBSD install lsof package
Type the following command to update current ports collection and install lsof from ports:
# portsnap fetch update
# cd /usr/ports/sysutils/lsof
# make install clean
Now you can use lsof commad, enter:
# lsof
# lsof -i -U
# lsof -i 4 -a -p 2053
# lsof -i 6
$ man lsof
Linux Powered Asus EEE Laptop PC From $299
E-mail
Print
Can't find an answer to your question? Contact us
Related Other Helpful FAQs:
- How do I find out what ports are listening/open on my Linux / FreeBSD server?
- Ubuntu Linux: How do I install .deb packages?
- How do I install and search FreeBSD ports or a package?
- FreeBSD Obtain and Install Ports File in /usr/ports
- FreeBSD WARNING: Vulnerability Database Out of Date, Checking Anyway Error and Solution
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /usr/ports, administrative tool, bsd operating system, free open source, FreeBSD, freebsd install ports, freebsd ports, freebsd unix, list open files, lsof, lsof command, make command, open source unix, processes, unix dialects, unix domain socket, unix processes



Recent Comments
Today ~ 17 Comments
Today ~ 5 Comments
Today ~ 11 Comments
Yesterday ~ 24 Comments
Yesterday ~ 6 Comments