Linux Tips

-- How to config ip in Linux

Follow the instruction while editing the file '/etc/network/interfaces'

 

iface eth0 inet static
address 192.168.184.111
gateway 192.168.184.11
netmask 255.255.255.0

 

-- Adjust time in Linux

 

sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo ntpdate 129.7.1.66
 

你可能感兴趣的:(linux)