Skip to content

Instantly share code, notes, and snippets.

@jhyland87
Created November 17, 2017 15:45
Show Gist options
  • Select an option

  • Save jhyland87/404fa35a9f05892588d2360641fadbad to your computer and use it in GitHub Desktop.

Select an option

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
lsof | awk '$1 == "bash" && $4 == "cwd"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment