List enabled services in Linux

Nov
21
2008
Tagged in , &

Today I needed to list all of the services which were enabled on boot-up for one of the servers I maintain. Obviously, my first port of call was to use the nifty tool ChkConfig like so…

/sbin/chkconfig --list

But that also listed all the services which were NOT set to start at boot time… Surely grep would be me saviour?! Well thanks to a comment on another site, I introduce this set of commands!

chkconfig --list | grep "3:on" | awk "{print $1}" | sort

This makes the list a LOT more readable and even alphabetizes it for you!

Comment Icon

0 Comments

There are no comments yet. Why not be the first?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <img> <p>
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • You can enable syntax highlighting of source code with the following tags: <pre>, <code>.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.

Follow Me

Recent comments

Answers 1 day ago
Replies.... 6 days ago
Or in 6 days ago
A few tweaks 1 week ago
Nice 1 week ago
Thanks a million 1 week ago
Syndicate content