1.2 Commands Flashcards
help
is used to list commands and description of what they do
dir
list files and folders
/?
Give help on the command similar to help to explain
cd
is used to move from one folder to another
md(mkdir)
is used to make new folders
rd(rmdir)
is used to delete empty folders
del
is used to delete files
tree
list files and folder within the current folder and all sub folders
Winver
Shows what version of windows you are on
cls
clears terminal screen
copy
is used to copy files from
one folder to another
xcopy
it can copy folders, subfolders, and all the files with them
robocopy
more advanced copy
task than xcopy
ping
Uses ICMP to return the
status of a unicast
Used for troubleshooting to test
Host/Server reachiability
Internet connection
Network interface card
test DNS issues
ping -n
change the number of
pings sent.
ping-l
change the size of the ping
packets
ping-t
pings continously
ping-4
force an IPv4 ping
ping-6
force an IPv6 ping
ipconfig
Displays interface
configurations.
ipconfig /all
: displays more
detailed information.
ipconfig /renew
request configurations from a DHCP server
ipconfig /release
removes configurations obtained through
DHCP.
ipconfig /displaydns
displays the
local DNS cache
ipconfig /flushdns
clears the local
DNS cache.
net use
used to connect to a network share
net use x: \servername\sharename
netstat
Displays active network
connections
netstat -a
displays all connections,
including listening ports
tracert
Uses ICMP to return a hop
count
net user
Used to manage/create user
accounts
pathping
Performs a ping and a
traceroute at the same time
nslookup
Identifies the current
DNS server and displays IP
Addresses for a provided name.
hostname
displays a computer’s
hostname
chkdsk
scans a disk in hopes of recovering corrupted files
chkdsk /f
Fixes errors on the disk
chkdsk /r
Fixes errors and Locates
bad sectors
Format
erases a disk file applying a file system
format /fs
specifies the type of the file system (FAT, FAT32,exFAT,NTFS)
format d: /fs:ntfs
will format the D
drive as ntfs
format /q
performs a quick format
format d: /fs:fat32/q
will quick format the D drive as FAT32
Convert
changes FAT/FAT32
filesystem to NTFS without
erasing files
convert /fs
Specifies that the
volume will be converted to NTFS
* Cannot convert NTFS to any other
file system
Diskpart
is a command line
partition management tool
sfc
is the system file checker used to repair system files
sfc /SCANNOW
scans integrity of all protected system files and repairs
files
sfc /VERIFYONLY
Scans system files but does not repair them
shutdown
will send a signal to turn off the system
shutdown /p
Turn off the local
computer with no time-out or
warning
shutdown /r
Full shutdown and
restart the computer
Gpupdate
Updates the latest
group policy setting
Gpresult
shows what group
policy is applied to the computer