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
Network Time Protocol Sync with External Server on Windows Server
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
windows 2000 – command line (cmd) command auto completion
By default, windows 2k server does not activate this function. Do this to activate it : start regedit goto HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor change the keyword “CompletionChar” from 64 to 9 close all command line window and start and new window Voila!
bash – dealing with backtics ” ` ” in mysql statement
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:…
vim – error when starting
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 !!!
Recent Comments