distinguishing interactive bash from script bash in ps
i still use bash for many scripts as well as many interactive shell sessions. i want to be able to terminate all the interactive shells or all the script shells for a particular user, but not both. "killall /bin/bash" would do both. i'd like to know the best way to list bash processes in ps that can be filtered to one type or the other.
Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer
Bookmarks