Powershell (Windows) Flashcards

1
Q

pwd

A

print working directory

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

hostname

A

my computer’s network name

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list directory

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

rmdir

A

remove directory

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

pushd

A

push directory

(add directory to the stack)

don’t worry about stacks at the moment, come back to later

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

popd

A

pop directory

(remove from stack)

don’t worry about stacks at the moment, come back to later

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

cp

A

copy files or directory

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

robocopy

A

robust copy

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

mv

A

move file or directory

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

more

A

page through a file

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

type

A

print whole file

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

forfiles

A

run command on multiple files

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

dir -r

A

find files

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

select-string

A

find things inside files

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

help

A

read a manual page

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

helpctr

A

find what manual page is appropriate

19
Q

echo

A

print some arguments

20
Q

set

A

export/set a new environment variable

21
Q

exit

A

exit the shell

22
Q

runas

A

run commands as a super user

23
Q

(reverse card)

print working directory

A

pwd

24
Q

(reverse card)

my computer’s network name

A

hostname

25
Q

(reverse card)

make directory

A

mkdir

26
Q

(reverse card)

change directory

A

cd

27
Q

(reverse card)

list directory

A

ls

28
Q

(reverse card)

remove directory

A

rmdir

29
Q

(reverse card)

push directory

(add directory to the stack)

don’t worry about stacks at the moment, come back to later

A

pushd

30
Q

(reverse card)

pop directory

(remove from stack)

don’t worry about stacks at the moment, come back to later

A

popd

31
Q

(reverse card)

copy files or directory

A

cp

32
Q

(reverse card)

robust copy

A

robocopy

33
Q

(reverse card)

move file or directory

A

mv

34
Q

(reverse card)

page through a file

A

more

35
Q

(reverse card)

print whole file

A

type

36
Q

(reverse card)

run command on multiple files

A

forfiles

37
Q

(reverse card)

find files

A

dir -r

38
Q

(reverse card)

find things inside files

A

select-string

39
Q

(reverse card)

read a manual page

A

help

40
Q

(reverse card)

find what manual page is appropriate

A

helpctr

41
Q

(reverse card)

print some arguments

A

echo

42
Q

(reverse card)

export/set a new environment variable

A

set

43
Q

(reverse card)

exit the shell

A

exit

44
Q

(reverse card)

run commands as a super user

A

runas