Useful commands in Linux

Reset IP address

ip addr flush dev eth0

Reset system env

export PATH=/usr/sbin:/bin:/usr/local/sbin:/usr/local/share/bin:$PATH

Set the hardware clock from the current system time

hwclock --systohc

分享