Wednesday, October 11, 2006

Easily Forgotten Command

Map Drive through cmd
net use * \\Ip\Sharename
- will use the next available drive
net use D: \\Ip\Sharename
- map to D drive

Telnet Particular Port in PC
telnet IP PORT

Find Domain Information
cmd>nslookup
cmd>set type=AmxNSANY....
cmd>TYPE IN DNS

Display Network Status
cmd>netstat -na
- Display connections and listening port in numerical form

Force delete a folder (Linux)
rm -rf ./folder_name

Add route to network gateway
route add destination_ip gateway_ip -p
- dash p in the end would add a key in windows registry thus make this route permanently

Change unix file mode
chmod 755 *.sh