Shell (Windows) Flashcards

Learning common shell commands

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 (c.f. less)

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

type (cat)

A

print the whole file (c.f. cat)

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 (c.f. find)

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

select-string

A

find things inside files (c.f. grep)

17
Q

help (man)

A

read a manual page (c.f. man)

18
Q

helpctr

A

find what manual page is appropriate (c.f. apropos)

19
Q

echo

A

print some arguments

20
Q

set

A

export/set a new environment variable (c.f. export)

21
Q

exit

A

exit the shell

22
Q

runas

A

DANGER! become super user root DANGER! (c.f. sudo)

23
Q

attrib

A

change file attribute

24
Q

icacls

A

view & modify Access Control List

25
Q

New-Item

A

make an empty file (c.f. touch)

26
Q

#

A

Octothorpe