| List all open files with lsof |
|
| sysadmin |
|
"lsof" is a command which lists all open open files on a system. And because everything is a file in Unix (this includes pipes, network sockets, disk files and all other devices) it is a bit like a swiss army knife for a Linux sysadmin.
Some examples:
To list all Internet and x.25 (HP-UX) network files:
To show all network files related to port 22
combine lsof and grep to show all ports on which your system is LISTENING:
Show all open files from a user (e.g. apache ):
Or use -a to combine both:
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |


