Today's article has you counting the running proceses.

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
11,689
Reaction score
10,223
Credits
96,743
It's a nice easy article, using a pipe, ps, and wc. It's even got a list of random numbers to play with.


Feedback is awesome.
 


Nice write up. Now lets do it the cryptic bash way!

Code:
[user@server /]$ ps aux | wc -l
249
[user@server /]$ ls /proc | grep -Eo '[0-9]{1,5}' | wc -l
249
[user@server /]$ echo -e 'Tis magic!'
Tis magic!
[user@server /]$
 
LOL I like the ls /proc method. It's a little late now (though you could always leave it as a comment at the site) but there's always this.
 

Members online

No members online now.

Top