Command Line OSX reverse Flashcards

2
Q

print working directory

A

pwd

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

my computer’s network name

A

hostname

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

make directory

A

mkdir

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

change directory

A

cd

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

list directory

A

ls

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

remove directory

A

rmdir

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

push directory

A

pushd

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

pop directory

A

popd

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

copy a file or directory

A

cp

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

move a file or directory

A

mv

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

page through a file

A

less

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

print the whole file

A

cat

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

execute arguments

A

xargs

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

find files

A

find

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

find things inside files

A

grep

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

read a manual page

A

man

18
Q

find what man page is appropriate

A

apropos

19
Q

look at your environment

A

env

20
Q

print some arguments

A

echo

21
Q

export/set a new environment variable

A

export

22
Q

exit the shell

A

exit

23
Q

DANGER! become super user root DANGER!

A

sudo

24
Q

change permission modifiers

A

chmod

25
Q

change ownership

A

chown