Skip to content

Instantly share code, notes, and snippets.

@jgfaisca
Created September 24, 2016 23:49
Show Gist options
  • Save jgfaisca/62c28574095e1f5cf38131c0c305daff to your computer and use it in GitHub Desktop.
Save jgfaisca/62c28574095e1f5cf38131c0c305daff to your computer and use it in GitHub Desktop.
List opened files based on process names
lsof -c <process_name>
You can give multiple -c switch on a single command line, example:
lsof -c ssh -c init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment