Wednesday, 14 August 2013

only show running services using service --status-all and grep

only show running services using service --status-all and grep

If I do service --status-all I get something like this:
[ ? ] webmin
[ ? ] whoopsie
[ + ] winbind
[ - ] x11-common
I want to show just the running ones ([ + ]) so I did
service --status-all | grep +
which highlights them, but how do I make it exclude the other lines?
Also, is this showing actual running services or just ones which are
scheduled to run at startup?

No comments:

Post a Comment