Created
September 24, 2016 23:49
-
-
Save jgfaisca/62c28574095e1f5cf38131c0c305daff to your computer and use it in GitHub Desktop.
List opened files based on process names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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