Home > BASH, Linux, Red Hat, RHCE, RHCT, Tips > Tips: Handy Linux Commands

Tips: Handy Linux Commands

This is by no means an exhaustive list, merely commands that I use on a daily basis that will be updated periodically as I can be bothered.

Use root complete with variables & script access:

sudo -

Renew DHCP lease:

dhclient -r

Restart networking:

 /etc/init.d/network restart

Check CPU usage/processes:


Find commands:

apropos <command-or-pattern>
man -k <command-or-pattern>

Find files & directories:

locate <pattern>

Display PCI devices:


Display USB devices:


Display storage devices:

fdisk -l

Check for new hardware (Happens at boot time automatically):

kudzu --probe

Check for new hardware & test kudzu (requires rhpxl package):


Gather information from the BIOS:

ownership #(Compaq specific)
vpddecode #(IBM specific)

List drivers/kernel modules:


Manually load a module and its dependencies:

modprobe <modulename>

Display information about a specific module or modules:

modinfo <packagename>

Launch the HAL device manager to examine all devices HAL knows about:

Categories: BASH, Linux, Red Hat, RHCE, RHCT, Tips
  1. Raging Dragon
    January 22, 2011 at 12:08 am

    Sudo isn’t enabled by default (well not for majority of accounts with RH though debian/ubuntu allow the access accounts to use it by default) and you can use Su – commands to do similarly the same thing. One thing I do like about sudo is the ability to log transactions (makes life a bit simiplier)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: