Showing posts from April, 2014

Change The RHEL/CentOS Linux Time Zone

After Linux server has been installed and you noticed that time zone has not been set correctly, here is how to do it:

1. Check the current time zone:

# cat /etc/sysconfig/clock

# date
Thu Jul  9 06:46:14 EDT 2013

2. You can find the list of available time zones under /usr/share/zoneinfo:

# ls /usr/share/zoneinfo
Africa      Atlantic   Chile    Eire     Factory  GMT-0      Iceland      Jamaica    Mexico   NZ        posix       ROC        Universal
America     Australia  CST6CDT  EST      GB       GMT+0      Indian       Japan      Mideast  NZ-CHAT   posixrules  ROK        US         Zulu
Antarctica  Brazil     Cuba     EST5EDT  GB-Eire  Greenwich  Iran         Kwajalein  MST      Pacific   PRC         Singapore  UTC
Arctic      Canada     EET      Etc      GMT      Hongkong  Libya      MST7MDT  Poland    PST8PDT     Turkey     WET
Asia        CET        Egypt    Europe   GMT0     HST        Israel       MET        Navajo   Portugal  righ…

Linux Routing table

We can check current Linux route table with netstat command

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface         UG        0 0          0 eth2   U         0 0          0 eth0   U         0 0          0 eth1   U         0 0          0 eth2 UG        0 0          0 eth0       U         0 0          0 lo     UG        0 0          0 eth0 UGH       0 0          0 eth0   UG        0 0          0 eth0     U         0 0          0 eth0

Q: How to add a new route?

To add a single host destinati…