Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.