ifconfig – NIC capabilities / functions
find out what is the capability of an network interface, e.g. :
ifconfig -m vr0
configure / set media types of a NIC, e.g :
ifconfig vr0 media 100baseTX
ifconfig vr0 media autoselect
find out what is the capability of an network interface, e.g. :
ifconfig -m vr0
configure / set media types of a NIC, e.g :
ifconfig vr0 media 100baseTX
ifconfig vr0 media autoselect
configure / set network time server :
net time /setsntp:0.pool.ntp.org
start the network time services :
net stop w32time
net start w32time
check whether network time is in sync :
net time /querysntp
By default, windows 2k server does not activate this function. Do this to activate it :
Voila!
problem :
using backticks in bash for mysql statements. e.g. :
mysql -u username -h host -e “GRANT SELECT, LOCK TABLES ON `somedatabase`.* TO ‘someuser’@'somehost’;” -p<password with no space after parameter>
would get an error :
./scriptname: line 5: somedatabase: command not found
solution :
escape () the backticks ” ` ” surround “somedatabase”
mysql -u username -h host -e “GRANT SELECT, LOCK TABLES ON `somedatabase`.* TO ‘someuser’@'somehost’;” -p<password with no space after parameter>
problem :
For some reason, starting up vim pops up an error at the bottom :
E575: viminfo: Illegal starting char in line: d^^F
Press ENTER or type command to continue
solution :
delete the contents in ~/.viminfo
Voila !!!