Windows Command Line Tools Flashcards
How do you get the Command Prompt?
Type “cmd” in the search bar
How do you get to the Administrative Command Prompt?
Cntrl + Shift + Enter when searching for “cmd” in windows
What is the Directory Command?
dir
Shows everything in the current user’s local folder
What is an example of a relative path?
cd Users\student01\Documents
Does not require root path
What is an example of an absolute path?
cd C:\Users\Student01\Documents
Requires the full path including root
What is the “cd” command?
It is used to “C”hange “D”irectories forward or backwards
Difference between “.” and “..”?
it changes directories forward or backward within the command prompt
Example:
Current directory is C:\Users\Student01
the command “cd ..” will go to the higher directory and produce the command line:
C:\Users>
cd\
Will take the prompt all the way back to the root:
C:\Users\Student01>cd\
C:>
md or mkdir
make a directory or subdirectory
RD or RMDIR
The RD or RMDIR command deletes an empty directory.
chkdsk
Error Checking Program
chkdsk /r
Locates bad sectors and recovers readable information
(implies /F, when /scan not specified)
chkdsk /f
Fixes errors on the disk
chkdsk /scan
NTFS only: Runs an online scan on the volume
sfc
System File checker
sfc /scannow
scans integrity of all protected system files an repairs files with problems when possible
sfc /verifyonly
scans integrity of all protected system files./ No repair operation is preformed