midterm wrong answers Flashcards
1
Q
What is the order of precedence that will run in the shell?
A
- Shell functions
- Shell built in
- commands from file path
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
3
Q
Where are public keys located in arch directory?
A
~/.ssh/authorized_keys
4
Q
How do you ignore case sensitivity while using grep?
A
-i flag
5
Q
How would you search the current directory with find?
A
.
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
7
Q
A