Skip to content

Instantly share code, notes, and snippets.

@jadedgnome
Created July 13, 2014 13:28
Show Gist options
  • Save jadedgnome/20957cc8b00b39241f2a to your computer and use it in GitHub Desktop.
Save jadedgnome/20957cc8b00b39241f2a to your computer and use it in GitHub Desktop.
list sshfs mounts from 'ps aux' output , formatted with awk.
lsshfs() {
#list sshfs mounts
ps aux | grep sshfs | grep @ | grep -v "\-p" |awk '{print $2" = "$12" = "$13}'
ps aux | grep sshfs | grep @ | grep "\-p" | awk '{print $2" = "$12" "$13" "$14" = "$15}'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment