Assessment | Linux
1. Which component of a Linux system is responsible for loading the kernel
into memory during the boot process?
A) The init system
B) The bootloader (GRUB) and BIOS/UEFI
C) The shell
D) The kernel modules
Correct Answer: The bootloader (GRUB) and BIOS/UEFI
Rationale: The BIOS/UEFI initializes hardware, then loads the bootloader
(typically GRUB), which loads the kernel into memory. The init system (PID 1)
is started after the kernel loads, the shell is a user interface, and kernel
modules are loaded after the kernel is running.
2. What is the first process started by the Linux kernel, identified by PID 1?
A) bash
B) systemd
C) init or systemd (depending on distribution)
D) GRUB
Correct Answer: init or systemd (depending on distribution)
Rationale: PID 1 is the first user-space process started by the kernel. On older
systems it is `init`, while most modern distributions use `systemd`. Both
serve as the parent of all other processes.
3. Which command displays the current kernel version?
,A) uname -r
B) uname -a
C) cat /proc/version
D) All of the above
Correct Answer: All of the above
Rationale: `uname -r` shows the kernel release, `uname -a` shows all system
information including the kernel version, and `/proc/version` also displays
kernel version information. All three commands can be used to check the
kernel version.
4. Which directory contains device files such as `/dev/sda` and `/dev/tty`?
A) /dev
B) /proc
C) /sys
D) /etc
Correct Answer: /dev
Rationale: The `/dev` directory contains device special files managed by
udev. `/proc` contains process and system information, `/sys` contains
kernel and device information, and `/etc` contains configuration files.
5. Which command is used to print the first 10 lines of a file to the display?
A) cat
B) tail
C) head
,D) less
Correct Answer: head
Rationale: The `head` command displays the first 10 lines of a file by default.
`cat` displays the entire file, `tail` displays the last 10 lines, and `less` is a
pager for viewing files interactively.
6. What does the `find ~ -name '*.pdf'` command do?
A) Finds all files ending with .pdf in the current directory
B) Finds all files ending with .pdf in the root directory
C) Finds all files ending with .pdf in the user's home directory and all
subdirectories
D) Searches for the text ".pdf" in all files
Correct Answer: Finds all files ending with .pdf in the user's home directory
and all subdirectories
Rationale: The `find` command searches for files matching the specified
criteria. The `~` symbol represents the user's home directory, and `-name
'*.pdf'` finds files ending with the .pdf extension.
7. What is the set of pages that explain every command available on a Linux
system?
A) Help pages
B) Man pages
C) Master Pages
D) Informational Pages
, Correct Answer: Man pages
Rationale: Manual pages (man pages) are the built-in documentation system
for Linux commands. They provide detailed information about command
usage, options, and examples.
8. Which command will create an archive file named `backup.tar` containing
all files from the `/home` directory?
A) tar -cf backup.tar /home
B) tar -cf /home backup.tar
C) tar -xf /home backup.tar
D) tar -xf backup.tar /home
Correct Answer: tar -cf backup.tar /home
Rationale: The `tar -cf` command creates an archive (`-c`) and specifies the
file (`-f`). The correct syntax is `tar -cf archive_name.tar
directory_to_archive`. The `-x` option is for extracting, not creating.
9. What is virtualization in the context of computing?
A) The act of creating a virtual version of components such as storage
devices and computer network resources
B) A type of computer virus
C) A programming language for cloud computing
D) The process of encrypting data
Correct Answer: The act of creating a virtual version of components such as
storage devices and computer network resources