Shell Script – Incremental Backup
Reference: http://www.howtoforge.com/forums/showthread.php?t=4317
Reference: http://www.howtoforge.com/forums/showthread.php?t=4317
NIS Server = 192.168.0.1 NIS Client = 192.168.0.100 Setup Server Assume NIS Server IP is 192.168.0.1 vi/etc/hosts 127.0.0.1 localhost 192.168.0.1 nisserrver vi /etc/ypserv.conf dns: no files: 30 xfr_check_port: yes * : * : shadow.byname : port * : * : passwd.adjunct.byname : port vi /etc/sysconfig/network HOSTNAME=nisserver HISDOMAIN=example vi /etc/securenets host 127.0.0.1 255.255.255.0 192.168.0.0 domainname example [...]
No of NIC: 1 Default Device Alias: eth1 New Device Alias: eth0 1. Open /etc/sysconfig/hwconf class: NETWORK bus: PCI detached: 0 device: eth0 driver: 3c59x desc: “3Com Corporation 3c905B 100BaseTX [Cyclone]” network.hwaddr: 00:50:04:99:c4:1d vendorId: 10b7 deviceId: 9055 subVendorId: 10b7 subDeviceId: 9055 pciType: 1 pcidom: 0 pcibus: 1 pcidev: b pcifn: 0 2. open /etc/modprobe.conf alias [...]
Reference: http://en.wikipedia.org/wiki/Pgrep pgrep是一個讓你快速找出process id的指令,若果你要用ps來找出id的話,就會是這樣 ps ax | grep taskname | grep -v grep | awk ‘{print $1}’ 如果用pgrep的話 pgrep taskname 這樣就可以了,方便吧? 順帶一提,有些處理程序並不能就這樣用pgrep找出id出來,例如一些java程式,你可以使用 pgrep java 對,這樣的確是可以找到pid出來..但是如果你在同一時間運行 programA.jar programB.jar的話,就會找到2個pid出來了。當你只想找出programA的pid,要怎麼辦呢? pgrep -f programA 這樣pgrep會找尋整句處理程序再搜尋正確的pid
Reference: http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html The following is a sample route-eth0 file using the network/netmask directives format. The default gateway is 192.168.0.1, interface eth0. The two static routes are for the 10.10.10.0/24 and 172.16.1.0/24 networks. However, as mentioned before, this example is not necessary as the 10.10.10.0/24 and 172.16.1.0/24 networks would use the default gateway anyway: ADDRESS0=10.10.10.0 NETMASK0=255.255.255.0 [...]