Wednesday, February 15, 2006

Linux Notes

Tar and Gzip: http://en.wikipedia.org/wiki/Tar_file_format

1. Compress: tar -cvzf test.tar.gz ./test_folder/
2. Uncompress: gunzip -c test.tar.gz tar -xf -


Linux: IP address: Set: How to set your IP address + gateway + DNS (from the console command line)?
http://www.faqts.com/knowledge_base/view.phtml/aid/23675/fid/107

1. /sbin/ifconfig eth0 inet 192.168.10.233 netmask 255.255.252.0
2. route add -net default gw 192.168.10.1 eth0
3. vi /etc/resolv.conf --> set the nameserver: 192.168.10.6

The above the only take effectiveness one time. After next reboot, you need to setup again.

No comments: