Created
November 22, 2015 10:43
-
-
Save craig-m/4783e78f9c281da2cc85 to your computer and use it in GitHub Desktop.
List shells without a tty
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
ps -ef | awk '$6=="?"&&$8~/^(\/bin\/)?(ba|da|z|k|c|tc)*sh-?/{print}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment