Command Prompt Flashcards
What does ‘CD’ mean?
Change Directory - Changes directory to the specified path.
ex: CD JohnnyFolder
What does ‘MD’ mean?
Make Directory - Creates a folder in the current directory.
ex: MD JohnnyFolder
What does ‘RD’ mean?
Remove Directory - Removes the specified directory.
ex: RD JohnnyFolder
‘C:’ performs what process?
‘C:’ Jumps to the root folder of the C: drive. The C can be replaced with other drive letters.
ex: D:
How do you delete a file by name?
Navigate to the directory and type del to delete the file.
ex: del johnnyfile.txt
How do you delete files based on extensions?
Del *.jpg will delete all files in the directory that have the .jpg extension.
ex: del *.txt
/help vs /?
/Help shows you commands.
/? shows the switches for the posted command.
ex: Format /?
SFC /Scanfile
Scanfile Scans a file that you specify and fixes problems if they are found.
SFC /Scannow
Immediately scans all protected system files.
SFC /VerifyOnly
Scans protected system files and does not make any repairs or changes.
SFC /VerifyFile
Identifies the integrity of the file specified, and makes any changes and repairs.
SFC /OFFBOOTDIR
Repairs an offline boot directory.
SFC /OFFFWINDIR
Repairs an offline windows directory.
Format Switches; Name 3.
/FS: Specifies the type of file system to use (FAT, FAT32, or NTFS)
ex: /FS:NTFS
/V: Specifies the new volume label.
ex: /V:HDD2
/Q: Executes a quick format.
What string would I type to format a harddrive in NTFS with the name Star Drive?
FORMAT D: /FS:NTFS /V:Star Drive