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:

top

Find commands:

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

Find files & directories:

locate <pattern>

Display PCI devices:

lspci

Display USB devices:

lsusb

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):

ddcprobe

Gather information from the BIOS:

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

List drivers/kernel modules:

lsmod

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:

hal-device-manager
About these ads
Categories: BASH, Linux, Red Hat, RHCE, RHCT, Tips
  1. Raging Dragon
    January 22, 2011 at 12:08 am | #1

    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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: