Archive

Archive for the ‘FreeBSD’ Category

How to update Timezone info in FreeBSD

January 11th, 2007 No comments

1. fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz
2. mkdir timezone && cd timezone && tar zxvf ../tzdata2007a.tar.gz
3. sudo tar cf /usr/share/zoneinfo.tar /usr/share/zoneinfo
4. sudo zic northamerica ( or whatever timezone you are intrested in ) 
5. zdump -v /usr/share/zoneinfo/America/New_York  | grep 2007

Copy Directory Structure Using Tar

May 26th, 2006 No comments

Need to copy or archive of directory structure without any files ? this worked for me : 

tar cnpf dir.tar `find . -type d`