General Red Hat Linux Information

Run Levels & some Common Commands


A Few Things to Remember
  1. When you su to Root, _your_ environment is exported (still active) so things like $PATH are unchanged.
  2. Use su - to get the environment to match the new user ID. This will send you to the new ID's home dir.
  3. You can use su -c "command_string_in_quotes" if you only want to run one command as root.
  4. If you stop the network with /etc/rc.d/init.d/network stop it also stops lo, the local loopback interface.
  5. If you run ps without any switches, it only shows processes running in _that_ shell. Use ps -ea for all ps's
  6. If you appear to lock the system while experimenting you can usually avoid a reboot by trying one of:


Runlevels These are the runlevels that you may want to change using init or telinit

Runlevels:
For example, to reboot the saystem use telinit 6

Each Runlevel activates the scripts in its respective rcX.d directory (/etc/rc.d/rc0.d, rc1.d, etc)
The runlevel scripts are actually links to scripts in /etc/rc.d/init.d which can be controlled with the chkconfig command.


Useful Commands

** Always read the man page or at least use --help _BEFORE_ executing any command. **

** most commands have switches that dramatically change the functionality. **

Disk/Filesystem Related Commands: File and Navigation (& Script) Related Commands: Cursor & Shell Control Keys: Network Related Commands: System and Process Related Commands: Printing Related Commands: Miscellaneous Commands:

Note: If you still have not found what your after, try apropos.

original document created October 2000
updated May 2002