List enabled services in Linux

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…

[adsense:468x60:4496506397]

/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!

[adsense:468x60:4496506397]

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

1 Comments

The most recent comment was on Mon, 9th Jan 2012 - 16:52

netstat -tulpn

Add new comment

Filtered HTML

  • 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: <code>, <pre>, <bash>, <css>, <html>, <js>, <jquery>, <mysql>, <php>. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.