Linux Filesystem Structure Quiz

Take this quiz to test your understanding of Linux filesystem structure and commands. Questions cover root directory, commands like ls and chmod, and the purpose of /bin, /etc, /usr, and more.

#1

What is the root directory in Linux?

/home
/root
/
/var
#2

Which command is used to display the current directory in Linux?

ls
pwd
cd
dir
#3

Which command is used to create a new directory in Linux?

create
mkdir
touch
newdir
#4

What is the purpose of the /usr directory in Linux?

Stores user-related programs and data
Contains system configuration files
Stores temporary files
Holds binary files
#5

Which command is used to remove a directory in Linux?

rmdir
rm
remove
del
#6

What is the purpose of the /sbin directory in Linux?

Stores binary files for system administration
Contains system configuration files
Stores user home directories
Holds system startup scripts
#7

What is the purpose of the /tmp directory in Linux?

Stores temporary files
Contains system configuration files
Stores user home directories
Holds system libraries
#8

What is the purpose of the /bin directory in Linux?

Stores binary files
Contains boot files
Holds system configuration files
Stores user home directories
#9

What does the 'chmod 755 file.txt' command do in Linux?

Changes the ownership of file.txt to user '755'
Changes the permissions of file.txt to read, write, and execute for the owner, and read and execute for others
Deletes file.txt
Creates a new file.txt with permission 755
#10

What does the command 'ls -l' display in Linux?

Long listing format of files and directories
List of all files and directories including hidden ones
List of files with detailed information
List of files sorted by size
#11

Which file in the /etc directory contains user account information in Linux?

passwd
shadow
group
users
#12

Which command is used to change the owner of a file in Linux?

chown
chmod
own
changeowner
#13

What does the command 'grep' do in Linux?

Find and replace text in files
Search for patterns in files
List all files in a directory
Display contents of a file
#14

What does the command 'df -h' display in Linux?

Detailed file information
List of all files and directories
Disk space usage in a human-readable format
List of files sorted by size
#15

What is the purpose of the /etc directory in Linux?

Stores temporary files
Contains system configuration files
Stores executable files
Holds user home directories
#16

What is the purpose of the /dev directory in Linux?

Stores device files
Contains system configuration files
Holds user home directories
Stores binary files
#17

What is the purpose of the /opt directory in Linux?

Stores optional add-on software
Contains system configuration files
Stores temporary files
Holds system libraries
#18

What is the purpose of the /proc directory in Linux?

Virtual filesystem providing system information
Stores program binaries
Holds system configuration files
Stores user home directories
#19

What is the purpose of the /run directory in Linux?

Holds temporary files
Contains system configuration files
Stores user home directories
Contains system runtime data

Sign In to view more questions.

Sign InSign Up

Quiz Questions with Answers

Forget wasting time on incorrect answers. We deliver the straight-up correct options, along with clear explanations that solidify your understanding.

Test Your Knowledge

Craft your ideal quiz experience by specifying the number of questions and the difficulty level you desire. Dive in and test your knowledge - we have the perfect quiz waiting for you!

Other Quizzes to Explore