Storage and Filesystems Flashcards
What is stored in /bin
Executable programs necessary for the system (in single user mode)
What is in /boot
Boot loader files
What is in /dev
Device files
What is in /etc
System and service config files
What is in /home
User data files/profiles
What is in /lib
Library files needed by executables
How to search for a file and not see search (access) errors?
find / -name STRING 2>/dev/null
What would you use [ ] for in a regex
To contain a list of possible values
What would you use - for in a regex
To describe a range of values
What is the . used for in a regex?
A wildcard for any single character
What is the ^ or $ used for in a regex
The ^ is used to reference finding something at the beginning of a line, the $ the end
What is the | used for in a regex?
Or
What would you use \ for in a regex?
Escape character : I.e you want to search for $ or “ not use them as expressions
How do you perform a regular expression (in grep)?
-E “EXPRESSION”
3 popular options for sort command
-k NUMBER (sort by a different column)
-r (reverse)
-t DELIMITER (, or “ “ )