1.3 Network command lines Flashcards
ipconfig commands
/all - more details
/release - releases ip address (DHCP)
/renew - renews the DHCP lease
/flushdns - flushes DNS cache
ping commands
ping 8.8.8.8 - normal ping
ping -t 8.8.8.8 - ping continuously, ctrl-C stops
press ctrl to stop pinging
tracert
determines route of ping
traces exact path and back
TTL (Time to Live)
refers to how many hops a packet takes to a destination
TTL=1 is the first router, TTL=2 is the second
Netstat commands
shows current communication connections
netstat -a shows all
netstat -n removes name resolution of connections (shows ip instead)
netstat -b (must be in admin elevation) shows binary
NBTSTAT
netbios over tcp/IP statistics
queries NetBIOS over TCP/IP….local and remote devices
good to find ip address of machines on lan
windows NET cmd line actions
NET command: starts/stop services, lots of options
net stop “filezilla ftp server”
make/drill down/delete directory (folders) using cmd line
md “\user\foldername” CREATES FOLDER
CD “\user\foldername” Drills down into folder
rd “\user\foldername” Removes the folder
be sure to check messers OS cmd line tools video again
do it now!
robocopy
robust copy
included in vista/7
“robocopy source destination”
you can use /s to copy all subdirectories as well
tasklist and taskkill
lists tasks running
taskkill ends tasks
taskkill requires name or process id for task
SFC
scans integrity of protected system files
options to repair or simply scan
Windows recovery console
last resort effort to fix an issue
fixes problems before windows starts up
break/fix OS files
master boot record
first sector on drive. shows where bootable sector is located on disc
fixmbr \device\harddisk0\partition1