Skip to main content

Module 1 Quiz - Introduction to Linux

Instructions​

This quiz contains 30 multiple-choice questions to validate your understanding of Module 1.

Tip: Answer each question before revealing the answer. The answers are hidden just after each question.


Question 1​

What is Linux?

See explanation

Correct answer: An open-source Unix-like operating system that manages hardware and software resources

Explanation: Linux is an operating system (OS) that manages computer resources (CPU, memory, disk, network) and allows applications to run. It is open-source and based on Unix.


Question 2​

Where does the name "Linux" come from?

See explanation

Correct answer: From Linus Torvalds (creator) + Unix (system that inspired it)

Explanation: Linux = Linus + Unix. Linus Torvalds created the Linux kernel in 1991, inspired by Unix.


Question 3​

What is the main advantage of Linux compared to proprietary systems?

See explanation

Correct answer: It is open-source, free, customizable, and has an active community

Explanation: Linux is open-source (source code accessible), free, highly customizable, and benefits from a large community that contributes to its development and support.


Question 4​

What are the two main components of a Linux system?

See explanation

Correct answer: Kernel and User Space

Explanation: The Linux kernel manages hardware resources and system processes. The user space contains applications, libraries, and tools that users utilize.


Question 5​

Which Linux component directly manages hardware?

See explanation

Correct answer: Kernel

Explanation: The Linux kernel is the lowest layer that communicates directly with hardware (CPU, RAM, disks, network). It manages resources and provides an interface for applications.


Question 6​

What is a process in Linux?

See explanation

Correct answer: An instance of a running program with its own PID

Explanation: A process is an instance of a running program. Each process has a unique PID (Process ID), its own memory, and its own resources.


Question 7​

What is the main role of the shell in Linux?

See explanation

Correct answer: Provide an interface between the user and the system to execute commands

Explanation: The shell (like Bash) interprets user commands, executes programs, manages scripts, and provides features like redirection and pipelines.


Question 8​

What is the structure of the Linux file system?

See explanation

Correct answer: A single hierarchy with / as root

Explanation: Linux uses the Filesystem Hierarchy Standard (FHS) with a single root /. All files and directories are organized under this single root.


Question 9​

Who is the default administrator user in Linux?

See explanation

Correct answer: root

Explanation: root is the super-administrator user in Linux with all privileges. Its UID is 0. sudo is generally used to execute commands with root privileges.


Question 10​

What are the three basic permissions for Linux files?

See explanation

Correct answer: Read (r), Write (w), Execute (x)

Explanation: The basic Linux permissions are: read, write, execute. These permissions apply to the owner, the group, and other users.


Question 11​

What is a Linux distribution?

See explanation

Correct answer: A combination of the Linux kernel with tools, libraries, and applications

Explanation: A Linux distribution (distro) combines the Linux kernel with a set of system tools, libraries, applications, and a package manager. Examples: Ubuntu, Debian, Red Hat, CentOS.


Question 12​

Which command shows the current directory?

See explanation

Correct answer: pwd

Explanation: pwd (Print Working Directory) displays the full path of the current working directory.


Question 13​

Which command lists the files in a directory?

See explanation

Correct answer: ls

Explanation: ls (list) displays the contents of a directory. Common options: ls -l (details), ls -a (hidden files), ls -la (details + hidden).


Question 14​

What is the difference between Ubuntu and Debian?

See explanation

Correct answer: Ubuntu is based on Debian but with more recent versions and commercial support

Explanation: Ubuntu is a distribution based on Debian, but with a faster release cycle, LTS (Long Term Support) versions, and available commercial support.


Question 15​

What is the PID of the init process (first process)?

See explanation

Correct answer: 1

Explanation: The init process (or systemd on modern systems) always has PID 1. It is the first process launched at startup and the parent of all other processes.


Question 16​

Which command changes the directory?

See explanation

Correct answer: cd

Explanation: cd (change directory) allows navigation through directories. Examples: cd /home, cd .., cd ~.


Question 17​

What is the FHS (Filesystem Hierarchy Standard)?

See explanation

Correct answer: A standard that defines the directory structure in Linux

Explanation: The FHS defines where to place files in the Linux system. For example: /bin for essential binaries, /etc for configuration, /home for users, /var for variable data.


Question 18​

Which directory contains system configuration files?

See explanation

Correct answer: /etc

Explanation: /etc contains system and application configuration files. Examples: /etc/passwd, /etc/hosts, /etc/nginx/.


Question 19​

Which command displays running processes?

See explanation

Correct answer: ps

Explanation: ps (process status) displays running processes. Common options: ps aux (all processes), ps -ef (extended format).


Question 20​

What is a PID?

See explanation

Correct answer: Process ID - Unique identifier of a process

Explanation: The PID (Process ID) is a unique number assigned to each process upon creation. It allows identification and management of processes.


Question 21​

What is the default shell on Ubuntu 24.04?

See explanation

Correct answer: bash

Explanation: Bash (Bourne Again Shell) is the default shell on most Linux distributions, including Ubuntu. It is compatible with sh and offers many advanced features.


Question 22​

Which directory contains users' home directories?

See explanation

Correct answer: /home

Explanation: /home contains users' personal directories. Each user typically has their own directory under /home/username. The root user's home directory is /root.


Question 23​

Which command shows help for a command?

See explanation

Correct answer: man or --help

Explanation: man command displays the full manual of a command. command --help shows quick help. Both methods are complementary.


Question 24​

What is an inode in Linux?

See explanation

Correct answer: A data structure that stores a file's metadata

Explanation: An inode (index node) stores a file's metadata: permissions, owner, size, dates, pointers to data blocks. The file name is stored separately in the directory.


Question 25​

What is the difference between a file and a directory in Linux?

See explanation

Correct answer: A directory is a special type of file that contains references to other files

Explanation: In Linux, "everything is a file". A directory is a special file that contains a list of file names and their inodes. That's why you can use ls -d to see directories as files.


Question 26​

Which command creates a directory?

See explanation

Correct answer: mkdir

Explanation: mkdir (make directory) creates a new directory. Option -p creates parent directories if needed: mkdir -p dir1/dir2/dir3.


Question 27​

What is the Linux kernel?

See explanation

Correct answer: The core of the system that manages hardware resources and processes

Explanation: The Linux kernel is the core of the operating system. It manages the CPU, memory, disks, network, and provides an interface for applications via system calls.


Question 28​

What is the command to view the contents of a file?

See explanation

Correct answer: cat

Explanation: cat (concatenate) displays the contents of a file. Other useful commands: less (navigation), head (first lines), tail (last lines).


Question 29​

What is an LTS Linux distribution?

See explanation

Correct answer: Long Term Support - Version with extended support (5 years for Ubuntu)

Explanation: LTS means Long Term Support. LTS versions (like Ubuntu 24.04 LTS) receive security updates and support for 5 years, ideal for production environments.


Question 30​

Which command copies a file?

See explanation

Correct answer: cp

Explanation: cp (copy) copies files or directories. Syntax: cp source destination. Option -r for recursive directory copying.


Quiz Summary​

Congratulations on completing the Module 1 quiz!

Key concepts tested:

  • Definition and origin of Linux
  • Architecture (Kernel, User Space)
  • Processes and PID
  • File system and FHS
  • Basic commands (pwd, ls, cd, cat, cp, mkdir)
  • Linux distributions
  • Shell and command line interface

If you had difficulties:

  • Review the corresponding chapters
  • Practice with Lab 1.1
  • Use man to explore commands

Next Steps​

  • Module 2: Linux System Architecture
  • Lab 1.1: Installation and First Use
  • Continue your learning!

Quiz created on: December 2024 - Tested on Ubuntu 24.04