Windows cmd/powershell Basic Commands Flashcards

Nuts and bolts of powershell

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

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

popd

A

Pop directory

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

cp

A

Copy a file 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 a 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 the whole file

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

forfiles

A

Run a command on lots of 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 man 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

DANGER! Become super user root DANGER!

23
Q

What command does the following?

Print Working Directory

A

pwd

24
Q

What command does the following?

My computer’s network name

A

hostname

25
Q

What command does the following?

Make directory

A

mkdir

26
Q

What command does the following?

Change directory

A

cd

27
Q

What command does the following?

list directory

A

ls

28
Q

What command does the following?

Remove directory

A

rmdir

29
Q

What command does the following?

push directory

A

pushd

30
Q

What command does the following?

Pop directory

A

popd

31
Q

What command does the following?

Copy a file or directory

A

cp

32
Q

What command does the following?

Robust copy

A

robocopy

33
Q

What command does the following?

Move a file or directory

A

mv

34
Q

What command does the following?

Page through a file

A

more

35
Q

What command does the following?

Print the whole file

A

type

36
Q

What command does the following?

Run a command on lots of files

A

forfiles

37
Q

What command does the following?

Find files

A

dir -r

38
Q

What command does the following?

find things inside files

A

select-string

39
Q

What command does the following?

Read a manual page

A

help

40
Q

What command does the following?

Find what man page is appropriate

A

helpctr

41
Q

What command does the following?

Print some arguments

A

echo

42
Q

What command does the following?

Export/set a new environment variable

A

set

43
Q

What command does the following?

Exit the shell

A

exit

44
Q

What command does the following?

DANGER! Become super user root DANGER!

A

runas