Shell Commands 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

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

mv

A

move a file or directory

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

less

Mac/Linux

A

page through a file

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

cat

Mac/Linux

A

print the whole file

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

robocopy

A

robust copy

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

more

A

page through file

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

type

A

print whole file

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

xargs

Mac/Linux

A

execute arguments

17
Q

forfiles

A

run command on lots of files

18
Q

find

Mac/Linux

A

find files

19
Q

dir -r

A

find files

20
Q

grep

Mac/Linux

A

find things inside files

21
Q

select-string

A

find things inside files

22
Q

man

Mac/Linux

A

read a manual page

23
Q

help

A

read manual page

24
Q

apropos

Mac/Linux

A

find what man page is appropriate

25
Q

helpctr

A

find what man page is appropriate

26
Q

env

Mac/Linux

A

look at your environment

27
Q

echo

A

print some arguments

28
Q

set

A

export/set a new environment variable

29
Q

export

Mac/Linux

A

export/set a new environment variable

30
Q

exit

A

exit the shell

31
Q

sudo

Mac/Linux

A

become super user root

32
Q

runas

A

become super user root