Windows Introductory CLI Commands Flashcards
Learn common Windows CLI commands
prompt
prompt $P
prompt $G
specifies text for command prompt
Specifies working directory for command prompt
Specifies ‘>’ for command prompt
Page 50
dir
dir /T:
dir /A:
dir /S:
Displays a list of files and subdirectories in a directory
Controls which time field to display.
Displays files with a specified attribute
Displays files in directories and all subdirectories
Page 50
attrib attrib +R attrib -H attrib +S attrib -A
Displays or changes file attributes. Turns on/off read-only attribute Turns on/off hidden attribute Turns on/off system attribute Turns on/off archive attribut page 52
date
date /t
prompts for date change
displays date without prompting for change
page 53
time
time /t
displays time and prompts for change
displays time and does not prompt for change
page 53
ver
displays OS version
page 53
title
sets the title for the CLI window
page 53
exit
exits the CLI window
page 53
mkdir (MaKe DIRectory)
Creates a directory
page 54
rmdir (ReMoves DIRectory)
rmdir directoryname /s
Removes a directory
removes all subdirectories
page 54
copy con filename.fileext.
creates a file to contain text written into the console. CTRL +Z and enter to save file as designated filename and filetype
page 54
notepad
create and edit text files
page 55
copy
Copies one or more files to another location. Can also name the copied file.
Syntax: copy
copy
page 55
move
Moves and renames files and directories.
page 55
ren (REName)
Renames a file or directory
page 55