Tuesday, October 09, 2012

Linux/Unix: Handy Commands

To change the timezone on linux server use the below command


ln -sf /usr/share/zoneinfo/America/New_York  /etc/localtime

 To create an archive

tar -czf my_archive.tar.gz /usr/local/jeff/docs

To change or update the date

date -s "09 OCT 2012 12:19:00"

No comments:

Post a Comment