User Tools

Site Tools


Command-Line Tools and Utilities


losf - list open files

To list only network files with TCP state LISTEN

lsof -iTCP -sTCP:LISTEN -nP

To list network files with all UDP states except Idle

lsof -iUDP -sUDP:Idle -nP
State names vary with UNIX dialects, so it's not possible to provide a complete list.
command-line_tools_and_utilities.txt · Last modified: 2019/03/09 10:38 by