Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (9 sloc) 357 Bytes

lsof -- list open files

EXAMPLES

lsof -c $PROGRAM - list files for program like $PROGRAM

lsof -i TCP - list TCP files

NOTES

Remember to use -a to join rules, e.g. lsof -a -c node -i TCP

Recall that socket connections are represented as files in *nix systems.

REFERENCES

An lsof Primer