词条 | Lsof |
释义 |
| name = lsof | logo = | screenshot = | caption = | collapsible = | author = | developer = Victor A. Abell [1] | released = | discontinued = | latest release version = 4.89 | latest release date = {{start date and age|2015|06|07|df=yes}} [2] | latest preview version = 4.91 | latest preview date = | status = | programming language =C | operating system =Linux, FreeBSD, OS X, Solaris | platform =Cross-platform | size = | language = | genre = | license = BSD license-compatible[3] | website = {{URL|people.freebsd.org/~abe/}} | frequently updated = }}lsof is a command meaning "list open files", which is used in many Unix-like systems to report a list of all open files and the processes that opened them. This open source utility was developed and supported by Victor A. Abell, the retired Associate Director of the Purdue University Computing Center. It works in and supports several Unix flavors.[4] ExamplesOpen files in the system include disk files, named pipes, network sockets and devices opened by all processes. One use for this command is when a disk cannot be unmounted because (unspecified) files are in use. The listing of open files can be consulted (suitably filtered if necessary) to identify the process that is using the files. To view the port associated with a daemon: From the above one can see that "sendmail" is listening on its standard port of "25".
One can also list Unix Sockets by using Lsof outputThe lsof output describes:
See also
References1. ^{{cite web |url=ftp://lsof.itap.purdue.edu/pub/Victor_A_Abell.gpg |title=PGP public key |accessdate=2013-01-15}} 2. ^{{cite web |url=ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof.tar.bz2.sig |title=4.89 PGP signature |date=2015-05-07 |accessdate=2015-05-07}} 3. ^lsof FAQ, 1.9 Is there an lsof license? 4. ^{{citation|title=Unix Network Programming: the Sockets networking API |author1=W. Richard Stevens |author2=Bill Fenner |author3=Andrew M. Rudoff |year= 2003|publisher=Addison-Wesley Professional|url= https://books.google.com/books?id=ptSC4LpwGA0C&pg=RA1-PA897&lpg=RA1-PA897&dq=Lsof |isbn=978-0-13-141155-5}} External links
1 : Unix file system-related software |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。