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

24
Q

What command does the following?

My computer’s network name

25
# What command does the following? Make directory
mkdir
26
# What command does the following? Change directory
cd
27
# What command does the following? list directory
ls
28
# What command does the following? Remove directory
rmdir
29
# What command does the following? push directory
pushd
30
# What command does the following? Pop directory
popd
31
# What command does the following? Copy a file or directory
cp
32
# What command does the following? Robust copy
robocopy
33
# What command does the following? Move a file or directory
mv
34
# What command does the following? Page through a file
more
35
# What command does the following? Print the whole file
type
36
# What command does the following? Run a command on lots of files
forfiles
37
# What command does the following? Find files
dir -r
38
# What command does the following? find things inside files
select-string
39
# What command does the following? Read a manual page
help
40
# What command does the following? Find what man page is appropriate
helpctr
41
# What command does the following? Print some arguments
echo
42
# What command does the following? Export/set a new environment variable
set
43
# What command does the following? Exit the shell
exit
44
# What command does the following? DANGER! Become super user root DANGER!
runas