Helpful Linux Commands

There are times when you need to get a quick answer on a Linux box, and I often forget the basic commands needed to do certain things. So here's a little "cheat sheet" of things I do rarely.

Determine Red Hat Release

Sometimes you may need to see which version of Red Hat you're running (and I would assume this would also apply to other flavors on *nix. Simply do:

cat /etc/redhat-release

This will tell you what version of the OS you're running. Here are a few samples:

Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Fedora Core release 5 (Bordeaux)
Fedora release 8 (Werewolf)

Set the Date/Time

If you need to set the date on your linux server, do the following

date -s "12/30/2008 15:30:00"

This will set the date to December 30th, 2008 at 3:30 pm.

More to come as I come across them and remember to post them here. : )

Comments


Author: arielschwartz
Sat, 01/30/2010 - 11:24

I just want you to know that I think you did a terrific job on this website

masters degree program | associate degree program | doctorate degree program | bachelors degree program | high school diploma program


Back to the Top