Linux (commonly pronounced LIH-N?ks in English; variants exist) is a Unix-like computer operating system. Linux is one of the most prominent examples of free software and open source development: typically all underlying source code can be freely modified, used, and redistributed by anyone.

Tags | | |

Showing the difference between runlevels

If you want to quickly find out what the difference between runlevels in linux (say if you want to switch from a GUI to a non-gui) you can use


# /sbin/chkconfig --list



This will print columns showing you what is on and what is off for each runlevel. Neat but it's too much information, I just want to compare 5 and 3. Here is how you can clean that up:



# /sbin/chkconfig --list|awk '{printf("%-19s%-19s%-19s\n", $1,$5,$7)}'



This gives the output nice and still column formatted






Comments

Feel free to leave a comment or question

Name: (Optional but appreciated):

Comment:

Use [code] [/code] for code block style



Security Code: