NEW
Font size
WorksheetsLinux Fundamentals Quiz
Total questions: 26
Worksheet time: 13mins
What is the primary function of the Linux kernel?
To provide a graphical user interface
To compile software applications
To manage hardware resources and system operations
To store user data and files
Which of the following is a Linux distribution?
iOS
Windows 10
macOS
Ubuntu
What does the command 'pwd' do in Linux?
Lists files in the current directory
Changes the current directory
Removes a file
Prints the current working directory
Which directory contains user-specific files and directories?
/home
/bin
/var
/etc
What is the purpose of the '/etc' directory?
To store user home directories
To contain system configuration files
To hold temporary files
To store device files
Which command is used to list all files, including hidden ones, in a directory?
ls -r
ls -h
ls -a
ls -l
What does the 'cd' command do?
Deletes a file
Displays the contents of a file
Changes the current directory
Creates a new directory
Which shell is the default on most Linux distributions?
Zsh
Fish
Bash
Ksh
What is the significance of the '/' in a Linux file path?
It is used to separate file extensions
It denotes a hidden file
It represents the root directory
It indicates a user directory
Which command is used to remove a directory in Linux?
mkdir
rmdir
rm -d
del
What does the 'man' command do?
Lists all files in a directory
Displays the manual page for a command
Changes file permissions
Compiles source code
Which directory contains system binaries for administration?
/tmp
/usr
/sbin
/lib
What is the purpose of the '/proc' directory?
To store user data
To provide information about running processes
To contain system logs
To hold executable binaries
Which command is used to clear the terminal screen?
erase
reset
cls
clear
What does the 'touch' command do?
Deletes a file
Changes file permissions
Creates a new file
Displays file contents
Which of these is not a function of an OS:
Provide a user interface
Communicate with hardware
Allow the computer to multi-task
Improves CPU performance
I want to create a new directory called foo, I use which command?
foo
make directory foo
mkdir foo
What does the ls -a command do in Linux?
List files in reverse order
List hidden files
Display files in human readable format
Sort files by size
Which command is used to display the contents of a text file in Linux?
ls
clear
pwd
cat
Which directory typically contains log files in a Linux system?
/boot
/var/log
/usr/bin
/home
Purpose of /etc
Which statement best describes the primary role of the /etc directory?
A. Stores users’ personal documents and media files
B. Holds system-wide configuration files that programs read at start-up
C. Contains essential binaries (ls, cp, cat) for single-user mode
D. Provides temporary scratch space that is wiped on reboot
What is typically found under /home on a standard Linux system?
A. Kernel modules and device drivers
B. System log files rotating daily
C. Per-user home directories (e.g., /home/alice) with personal data
D. Daemon executables like sshd and nginx
Which statement is true?
A. / and /root are aliases pointing to the same directory.
B. / is the filesystem root, while /root is the home directory for the root user.
C. /root contains essential binaries; / is used only for user data.
D. /root is a temporary directory cleared on every reboot.
What does the path ../images/logo.png mean when executed inside /home/alice/projects/site?
A. /images/logo.png
B. /home/alice/images/logo.png
C. /home/alice/projects/images/logo.png
D. /home/images/logo.png
Running cd with no arguments does what on most shells?
A. Fails with “missing operand.”
B. Takes you to the previous directory (cd -).
C. Takes you to the same location as cd ~ (your home directory).
D. Takes you to the filesystem root /.
