Powershell Commands Flashcards

Common Powershell Command Lines

1
Q

print working directory

A

pwd

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

my computer’s network name

A

hostname

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

make directory

A

mkdir

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

change directory

A

cd

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

list directory

A

ls

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

remove directory

A

rmdir

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

push directory

A

pushd

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

pop directory

A

popd

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

copy a file or directory

A

cp

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

robust copy

A

robocopy

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

move a file or a directory

A

mv

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

page through a file

A

more

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

print the whole file

A

type

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

run a command on lots of files

A

forfiles

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

find files

A

dir - r

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

find things inside files

A

select-string

17
Q

read a manual page

A

help

18
Q

find what man page is appropriate for

A

helpctr

19
Q

provide some arguments

A

echo

20
Q

export/set a new environment variable

A

set

21
Q

exit the shell

A

exit

22
Q

DANGER! BECOME SUPER USER ROOT DANGER

A

runas