LCA Linux System Installation & Configuration — Questions and Answers
Question 1: What is the first step when installing Linux on a new system?
- Configuring user accounts.
- Creating a bootable installation media (Correct answer)
- Installing desktop environment.
- Updating the kernel.
Correct answer: Creating a bootable installation media
The very first step when installing Linux on a new system is to create a bootable installation media, such as a USB drive or DVD. This media contains the Linux operating system installer and allows the computer to boot into the installation environment. Without a bootable medium, the system cannot load the necessary files to begin the installation process.
Question 2: Which Linux installation method allows installation over the network?
- Live CD installation.
- PXE Boot Network installation (Correct answer)
- USB stick installation.
- Dual boot installation.
Correct answer: PXE Boot Network installation
PXE (Preboot eXecution Environment) Boot Network installation is a method that allows a computer to boot and install an operating system over a network without needing local storage or an optical drive. This is particularly useful for deploying Linux to multiple machines efficiently in a corporate or data center environment. It centralizes the installation process and reduces manual effort.
Question 3: What is the purpose of the partitioning step during Linux installation?
- To increase RAM size.
- To divide the disk into logical sections (Correct answer)
- To set user permissions.
- To install applications.
Correct answer: To divide the disk into logical sections
During Linux installation, partitioning is the process of dividing a physical hard disk drive into one or more logical sections, known as partitions. Each partition can then be formatted with a specific filesystem and used for different purposes, such as the root directory, swap space, or user home directories. This organization helps manage disk space and system resources effectively.
Question 4: Which bootloader is most commonly installed with Linux systems?
- LILO
- GRUB (Correct answer)
- NTLDR
- Syslinux
Correct answer: GRUB
GRUB (GRand Unified Bootloader) is the most commonly installed bootloader with modern Linux systems. Its primary function is to load the operating system kernel into memory and pass control to it, allowing the system to start up. GRUB supports multiple operating systems and offers a flexible configuration for booting various kernels or even other operating systems installed on the same machine.
Question 5: What is the default file system commonly used during Linux installation?
- FAT32
- NTFS
- Ext4 (Correct answer)
- HFS+
Correct answer: Ext4
Ext4 (Fourth Extended Filesystem) is the default and most commonly used file system for Linux installations. It is a journaling file system that offers improved performance, reliability, and larger file system and file size limits compared to its predecessors. Its robustness and widespread adoption make it the standard choice for most Linux distributions.
Question 6: During installation, what does setting the root password accomplish?
- It secures the admin account (Correct answer)
- It encrypts the home directory.
- It creates a guest user.
- It disables SSH access.
Correct answer: It secures the admin account
Setting the root password during Linux installation is crucial for securing the superuser account, known as 'root'. This password grants administrative privileges, allowing full control over the system. A strong root password prevents unauthorized users from gaining complete access and compromising system security.
Question 7: What does the 'kickstart' file do in automated Linux installations?
- Manually configures network settings.
- Automates installation using predefined settings (Correct answer)
- Updates the system after installation.
- Creates backup images.
Correct answer: Automates installation using predefined settings
A kickstart file is a configuration file used in automated Linux installations, particularly with Red Hat-based distributions. It contains all the necessary information, such as partition layouts, network settings, and package selections, to perform an unattended installation. This allows for consistent and rapid deployment of multiple systems without manual intervention.
Question 8: Which command is used to check disk partitions in Linux after installation?
- lsblk
- fdisk -l (Correct answer)
- mount
- df -h
Correct answer: fdisk -l
The `fdisk -l` command is used to list the partition tables for the specified devices or, by default, all devices. The `-l` option specifically instructs `fdisk` to list the partition tables rather than entering its interactive mode. This provides a comprehensive overview of how disks are partitioned on the system.
Question 9: What is the role of the /etc/fstab file in Linux?
- It stores user login credentials.
- It lists files to be backed up.
- It defines disk partitions and mount points (Correct answer)
- It manages firewall rules.
Correct answer: It defines disk partitions and mount points
The `/etc/fstab` file (filesystem table) is a critical system configuration file that defines how disk partitions and network shares are mounted at boot time. It specifies the device, mount point, file system type, and mount options for each entry. This ensures that necessary file systems are automatically accessible when the system starts.
What is the first step when installing Linux on a new system?