Linux Today: Linux News On Internet Time.

Using Pipes in the Bash Shell

Jan 10, 2011, 13:04 (0 Talkback[s])

[ Thanks to Andrew Weber for this link. ]

"2. Check number of users logged in who | wc -l

"Here you are piping the command who, which shows the users logged in and sending the output into wc which will count the lines "-l" so come up with a number of users.

"3. Check processes ps aux | grep mingetty

"List all processes that have the text string mingetty. The ps command with the "aux" options will show all the processes currently running whether they were started as daemons or users started them. The grep command is a great tool to search for text strings."

Complete Story

Related Stories: