Command Line Commands Flashcards

To become fluent in the various commands in the Windows PowerShell command line.

0
Q

pwd

A

Print working directory

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

hostname

A

my computer’s network name

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list directory

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

rmdir

A

remove directory

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

pushd

A

push directory

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

popd

A

pop directory

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

cp

A

copy a file or directory

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

robocopy

A

robust copy

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

mv

A

move a file or directory

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

more

A

page through a file

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

type

A

print the whole file

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

for files

A

run a command on lots of files

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

dir -r

A

find files

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

select -string

A

finds things inside files

16
Q

help

A

read a manual page

17
Q

helpctr

A

find what man page is appropriate

18
Q

echo

A

print some arguments

19
Q

set

A

export/set a new environment variable

20
Q

exit

A

exit the shell

21
Q

runas

A

DANGER! become superuser root DANGER!

22
Q

attrib

A

change permission modifiers

23
Q

iCACLS

A

change ownership

24
Q

(pipe)

A

takes output from command on the left, and runs command on the right on it

25
Q

>

A

Takes command of the file on the left, and writes it to the file on the right.

26
Q

>>

A

Takes ouput from command on the left, and appends it to the file on the right.

27
Q

*

A

matches anything in a wildcard like *.txt

28
Q

dir -r -filter

A

finds all files that fill filter parameters, for instance “*.mp4” finds all mp4 files