User Tools

Site Tools


command-line_tools_and_utilities

Command-Line Tools and Utilities

losf

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 1.163.102.103