quiz 1-5 review 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

ssh

A

connect to remote machine

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

make

A

invoke Makefile to compile program

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

gcc

A

compile program such as C program

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

tar

A

work with .tar archive files or directories

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

grep

A

search for text in files

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

cp

A

copy file/directory

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

history

A

show list of most recently entered commands

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

top

A

display table of processes (i.e. programs) being run by users of computer

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

touch

A

create blank file if it doesn’t exist else update its modification timestamp to present time

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

wget

A

download file from internet

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

mkdir

A

make empty directory

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

mv

A

move or rename files

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

ls

A

list directory contents

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

hostname

A

show name of computer

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

diff

A

compare two files line by line (assuming they are text files)

17
Q

scp

A

copy files, usually btwn two computers

18
Q

cd

A

change working directory

19
Q

argv[0]

A

./executable_name

20
Q

break

A

exit closest outside loop or exit switch statement

21
Q

continue

A

skip to next iteration of outside loop

22
Q

static

A

variable initialized once and retains its value across multiple function calls

23
Q

stack buffer overflow

A

trying to access array element at too high of an index

24
Q

stack buffer underflow

A

trying to access array element at too low of an index

25
Q

address sanitizer

A

expose runtime memory errors

26
Q

passed parameters

A

receive values, no access to where the values are stored <-> can’t change variables’ values outside function

27
Q

stack

A

variable’s size known at compile time, memory automatically allocated in function stack & de-allocated after function leaves stack

28
Q

heap

A

malloc/calloc memory for variables, must be freed else memory leak

29
Q

heap buffer overflow

A

not enough memory m/calloc’d to store data type or index too high

30
Q

free

A

only on m/calloc-ed memory

31
Q

double free

A

address sanitizer

32
Q

signed MSB 1

A

-2^(num of bits-1)

33
Q

signed and unsigned addition overflow

A

wrap around to smallest number

34
Q

octal literal prefix

A

0

35
Q
A

XOR

36
Q

> > n

A

divide by 2^n

37
Q

«2

A

mult by 2^n, may overflow/sign change