Skip to content
Supplemental Reading Materials
- So Focus on learning parted since that covers “legacy” mbr/dos partition tables.
- Focus on mkfs
- Work through RegexOne
- Code up a little diddy that will generate random disk requirements with python.
- Regex: .
- Represents a single Character: [C.t] searches for any file that has a C in position 1, anything in position 2, and a t in position 3.
- Regex: ^
- Search the beginning of a line [^c.t] a regex that starts left to right and searches for a C in position 1, anything in position 2, and a t in position 3.
- Regex: $
- Search the end of a line.
- Regex: [abc]
- Search for specified Characters.
- Regex: [^abc]
- Search for other characters not these.
- Regex: *
- Match zero or more of the preceeding characters or expression.
- Regex: Man 7 Regext
- Explain: sed
- The stream editor command can operate on files using regular expressions.
- Explain: egrep
- Command that searchs a specified file line by line, returning lines that contain a patter matching the given regular expression
- Explain: fgrep
- Searches based on strings tather than patterns. Also uses file globbing instead of regular expressions.
- a well recieved tutorial system that walks a user through the basics of using Vim from novice to advanced.
- Explain lsblk
- DUPE – Lists block storage devices attached to the system
- Explain: fdisk
- Legacy Command used to create partitions of the MBR (DOS) type
- Explain: parted
- Mordern Command used to create partitions of MBR or GPT types.
- Which 3 partition IDs do you need to know for the exam?
- 83 – Standard Linux Filesystem
- 82 – Linux swap partitions
- 8e – Linux LVM Volumes.
- Explain: gdisk
- This is a command in the style of ‘fdisk’ that can be used to create GPT partitions on disks.
- T/F: fdisk, gdisk, parted can be used to create swap paritions
- Explain: mkswap
- This command is used to format a partition to be used as swap space.
- Explain: swapon
- Enables a swap partition or file
- Explain: swapoff
- Disables a swap partition of file.
- Which is better to use for swap space? Swapspace or swapfile?
- Swap space ( swap partition) is the better approach as the kernel knows to just dump memory here so there is less overhead than if you created a swapfile which takes a performance hit due to having the overhead of a filesystem to work through.
- What is the difference between a journaling and non journaling File System?
- The journaling FSs (ext3, ext4, xfs) keeps track of disk operations in a “Journal” whereas the non-journaling (ext2) file system does not. Journaling improves reliability of data operations.
- Explain: mkfs
- Creates a new filesystem on a partition.