Linux Today: Linux News On Internet Time.





More on LinuxToday


Using Pipes in the Bash Shell

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

WEBINAR: On-demand webcast

How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >

[ 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: