Windows Introductory CLI Commands Flashcards

Learn common Windows CLI commands

1
Q

prompt
prompt $P
prompt $G

A

specifies text for command prompt
Specifies working directory for command prompt
Specifies ‘>’ for command prompt
Page 50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

dir
dir /T:
dir /A:
dir /S:

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
attrib
attrib +R
attrib -H
attrib +S
attrib -A
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

date

date /t

A

prompts for date change
displays date without prompting for change
page 53

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

time

time /t

A

displays time and prompts for change
displays time and does not prompt for change
page 53

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ver

A

displays OS version

page 53

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

title

A

sets the title for the CLI window

page 53

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

exit

A

exits the CLI window

page 53

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

mkdir (MaKe DIRectory)

A

Creates a directory

page 54

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

rmdir (ReMoves DIRectory)

rmdir directoryname /s

A

Removes a directory
removes all subdirectories
page 54

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

copy con filename.fileext.

A

creates a file to contain text written into the console. CTRL +Z and enter to save file as designated filename and filetype
page 54

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

notepad

A

create and edit text files

page 55

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

copy

A

Copies one or more files to another location. Can also name the copied file.
Syntax: copy
copy
page 55

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

move

A

Moves and renames files and directories.

page 55

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ren (REName)

A

Renames a file or directory

page 55

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

type

A

Displays contents of a text file or files

page 55

17
Q

(pipe)

A

passes the output of one command to the input of another

page 56

18
Q

find
find /n
find /I

A

Searches for a text string in a text file or files
Displays line numbers of lines containing specified text string
Ignores case when searching for specified string
page 56

19
Q

del

A

deletes one or more files

page 56

20
Q

xcopy

xcopy /e

A

Copies directory trees and files
Copies directories and subdirectories, including empty ones
page 56

21
Q

doskey

doskey /history

A

Recalls Windows commands
Displays all previously entered commands
page 57

22
Q

>

command, not prompt!

A

Redirects standard command output to a file instead of displaying results on the screen. If the file does not exist, it is created. If the file does exist, it is overwritten.
page 57

23
Q

> >

A

Appends standard output to the end of another file. If the file does not exist, it is created.
page 57

24
Q

tree
tree /f
tree /a

A

Graphically displays the folder structure of a drive or path.
Displays the names of files in each folder
Uses ASCII instead of extended characters
page 57