Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

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"

Wednesday, March 30, 2011

Clear Linux Cache

Run 'free' command to get the current memory/cache allocation

### To free pagecache, dentries and inodes:

echo 3 > /proc/sys/vm/drop_caches

Run 'free' command to get the updated status