midterm wrong answers Flashcards

1
Q

What is the order of precedence that will run in the shell?

A
  1. Shell functions
  2. Shell built in
  3. commands from file path
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does something like [0-9]{2}

A

Matches two digit numbers ie 00 -> 99
{2} is a quantifier that specifices that the pattern needs to match twice

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

Where are public keys located in arch directory?

A

~/.ssh/authorized_keys

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

How do you ignore case sensitivity while using grep?

A

-i flag

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

How would you search the current directory with find?

A

.

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

What will happen if you run var = foo?

A

Because of how linux tokenizes inputs, it will read var first thinking that its alone before moving on to equal

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