Windows Command Line Flashcards

1
Q

Command to change directories

A

cd

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

Command to change directories example

A

cd Jake

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

Command to go to parent directory

A

cd ..

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

Command to go back two parent directories

A

cd ../..

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

Command to change two directories example

A

cd Jake\Desktop

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

Command to autocomplete

A

Tab

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

Command to view the contents of a directory

A

dir

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

Command to view the contents of a directory you’re not currently in example

A

dir Desktop\data

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

Command to show hidden directories as well

A

/a

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

Command to show hidden directories as well example

A

dir /a

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

Command to clear the command line

A

cls

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

Command to only list files of a certain type

A

*

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

Command to only list files of a certain type example

A

dir *.png

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

Command to reach previous commands

A

up arrow

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

Command to open a file in the default program

A

name of file

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

Command to find what any command does

A

/?

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

Command to find what any command does example

A

ipconfig /?

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

Command to make a new directory

A

mkdir

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

Command to make a new directory example

A

mkdir Photos

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

Command to delete a directory

A

rmdir

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

Command to delete a directory example

A

rmdir Photos

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

Command to delete a directory with folders in it

A

rmdir /s

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

Command to delete a directory with folders in it example

A

rmdir /s Photos

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

Button to move to the beginning of the text

A

home

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Button to move to the end of the text
end
26
Button to move a full word to the left
ctrl + ←
27
Button to move a full word to the right
ctrl + →
28
Absolute path definition
Typing in the full name of the folder to go there directly
29
Absolute path example
C:\Program Files\Google
30
Command to go into another drive
*drive name*:
31
Command to go into another drive example
D:
32
Command to create a tree of all the folders and files contained within
tree
33
Command to change the color of the background/text
color
34
Command to change the color of the background/text example
color 02
35
Digits for black background and bright green text (matrix)
0A
36
Command to change the color of the background/text back to the default
color
37
Command to find all the color options
color /?
38
Command to find the attributes of the files of the directory you’re in
attrib
39
Command to add an attribute to a file
attrib +
40
Command to add an attribute to a file example
attrib +h bacon.txt
41
Command to enter text into a new file
echo >
42
Command to enter text into a new file example
echo I like Monty Python > monty.txt
43
Command to delete a file
del
44
Command to delete a file example
del monty.txt
45
Command to print the contents of a file
type
46
Command to print the contents of a file example
type monty.txt
47
Command to overwrite the contents of a file
echo >
48
Command to add text to the end of a file
echo >>
49
Command to add text to the end of a file example
echo tunafish >> monty.txt
50
Command to print a directory as a text file
dir >
51
Command to print a directory as a text file example
dir > directory.txt
52
Command to copy a file into a folder
copy
53
Command to copy a file into a folder example
copy bucky.txt TestFolder
54
Command to copy the files in a folder into another folder
xcopy
55
Command to copy the files in a folder into another folder example
xcopy Apples Bacon
56
Command to copy the files and folders within a folder into another folder
xcopy /s
57
Command to copy the files and folders within a folder into another folder example
xcopy Apples Bacon /s
58
Command to move a file or folder into another folder
move
59
Command to move a file or folder into another folder example
move sample.txt Bacon
60
Command to rename a file or folder
rename
61
Command to rename a file or folder example
rename bacon ham
62
Color shortcut for 0
Black
63
Color shortcut for 1
Blue
64
Color shortcut for 2
Green
65
Color shortcut for 3
Aqua
66
Color shortcut for 4
Red
67
Color shortcut for 5
Purple
68
Color shortcut for 6
Yellow
69
Color shortcut for 7
White
70
Color shortcut for 8
Gray
71
Color shortcut for 9
Light Blue
72
Color shortcut for A
Light Green
73
Color shortcut for B
Light Aqua
74
Color shortcut for C
Light Red
75
Color shortcut for D
Light Purple
76
Color shortcut for E
Light Yellow
77
Color shortcut for F
Bright White