Created
November 17, 2017 15:45
-
-
Save jhyland87/404fa35a9f05892588d2360641fadbad to your computer and use it in GitHub Desktop.
Parse the lsof output to display what users/ttys are in what directories
This file contains hidden or 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 | awk '$1 == "bash" && $4 == "cwd"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment