General Linux Theory
Permissions
User/Group Management
Hard Drive Partitioning
Scripting
100

What is the path of the root users home directory?

/root

100

What are the 3 valid permission types in Linux operating systems?

Read (r), Write (w), & Execute (x)

100

What command is used to create a new user?

useradd

100

What is the command used to manage hard drive partitions?

fdisk

100

What are the 3 types of loops taught in this course?

For, While, & Until
200

What is the absolute path to the file which stores public user information?

/etc/passwd

200

What command is used to modify permissions for existing files?

chmod

200

What is the useradd parameter that lets you define the comment field for a user?

useradd -c

200

What is the common filesystem used by linux?

EXT4

200

What is the line that forces a script file to run using the bash shell?

#!/bin/bash

300

What variable can be printed to view the current shell being used within Terminal?

$SHELL

300

What command is used to change the default file/directory permissions?

umask

300

What parameters are needed to define a new home directory and move all the content from the old home to the new home?

-d & -m

300

What is the "Linux Swap" system ID within the fdisk command?

82

300

What is the variable that returns the exit status of a command?

$?

400

In regards to output redirection, what are the 2 types of outputs that can be redirected to a file?

STDOUT & STDERR

400

Assume you've created a new directory and the default permissions are "-wxr-xrw-", what is the current umask value?

421

400

Assuming you have an existing group named "Puppy Lovers", what is the full command that could be used to set user "Hanna" as an admin of the group?

gpasswd -A Hanna "Puppy Lovers"

400

What command is used to validate that a partition is not corrupt and has no errors?

fsck

400

What can be added at the end of a command to redirect any output to /dev/null?

&> /dev/null

500

Who created Linux?

Linus Torvalds

500

Based on the umask 624, what permissions would a newly created file have?

---r---w-

500

Assuming you have an existing user named Akin, what is the full command that would be used to change Akin's username to "Glen"?

usermod -l "Glen" Akin

500

List the commands needed to mount, format, create, and validate a partition in the correct order.

fdisk, mkfs, fsck, mount

500

What is the output of the following code?

https://pastebin.com/raw/h3nRhUDa

Syntax Error