In this article, we’ve included 3rd set of 10 basic Linux Interview Questions and detailed answers that will help candidates prepare for the Linux interview.
These Linux interview questions and answers will be useful for both freshers and experienced users.
BIOS refers to a Basic Input/Output System, is a firmware (Power-On Self-Test (POST)) used to perform hardware initialization during the boot process.
This became a legacy boot because the BIOS did not evolve and improve over time. Also, it has more serious limitations.
UEFI stands for Universal Extended Firmware Interface, which replaces traditional BIOS in systems due to lack of improvement and limitations on it.
It uses the GUID Partition Table (GPT) and maintains a list of valid boot volumes called EFI Service Partitions.
During the POST process, the UEFI firmware scans all bootable storage devices attached to the system to find an EFI service partition to boot.
MBR stands for Master Boot Record that sits in the first 512 bytes of a storage device. It contains an operating system bootloader and the storage device’s partition table.
Normally, the MBR detects a bootable device and loads the GRUB/GRUB2 boot loader into memory under BIOS systems.
MBR contains three portions:
GPT stands for GUID Partition Table, is a partitioning scheme that is part of the Unified Extensible Firmware Interface specification, which uses globally unique identifiers (GUIDs), or UUIDs, to define partitions and partition types.
The bootloader loads the “vmlinuz” kernel image file into memory and extracts the contents of the initrd/initramfs image file into a temporary, memory-based file system (tmpfs).
tmpfs and udev are virtual file systems that are resides in memory and not on a disk. These file systems dynamically used by RAM to store their files, and a tmpfs partition is set to half of its maximum available RAM.
These contents are automatically cleared upon reboot and temporary files in tmpfs directories can be recreated at boot by using systemd-tmpfiles.
You may have noticed that many tmpfs are mounted on your system but they are all different file systems and they are used for different purposes. What they have in common is the file system type: they use the tmpfs driver.
Use the ‘df’ command to list mounted tmpfs on your Linux system.
df -h | grep tmpfs
initrd stands for Initial RAM Disk. This is an initial or temporary root file system that is loaded before the actual root file system is available.
For Initrd, a “ramdev” block device was created. This is a RAM based block device that uses memory instead of disks. It contains the image of a file system, so the driver must be compiled into the kernel to enable it.
initramfs stands for Initial RAM file system used on modern Linux operating systems. This is an initial or temporary root file system that is mounted before the actual root file system is available.
For initramfs, this is directly linked to “tmpfs”. tmpfs does not require a driver, it is always in the kernel, so no additional drivers and devices are needed.
Inode is an index node or index number, is a data structure on a Linux file system that stores information about a file and directory.
File systems typically have two parts: metadata and real data.
Each file contains an inode that contains metadata about the file. Each file in the file system has a unique inode number. It is guaranteed that inode numbers are unique to a file system only.
Inode stores the following information about a file.
Use the ‘df’ command with ‘-i’ option to check the inode usage of active file system on your Linux system.
df -hi Filesystem Inodes IUsed IFree IUse% Mounted on devtmpfs 976K 340 975K 1% /dev tmpfs 978K 1 978K 1% /dev/shm tmpfs 978K 914 977K 1% /run tmpfs 978K 16 978K 1% /sys/fs/cgroup /dev/vda1 80M 1.1M 79M 2% / tmpfs 978K 1 978K 1% /run/user/0
The combination of ‘Ctrl + Alt + Del’ keys is very dangerous in Linux and should be disabled in the production environment.
Don’t use this combination, especially when you are working on the console, because if you accidentally hit it, it restarts the system immediately without any notice.
In the desktop environment, this combination brings you ‘Power Off / Restart / Cancel’ options, which allow you to prevent the power off within ’60’ seconds if you do not want to power off the system, while the Linux server environment restarts the system immediately without any notice.
In this guide, we’ve included the most frequently asked another 3rd set of 10 basic Linux Interview Questions and detailed answers for your reference purpose and we hope it will be very useful.
If you have any questions or feedback, feel free to comment below.
Cron is a command-line job scheduler available on Linux operating systems that allows users to…
In computing, there are two types of IP addresses, IPv4 and IPv6. By default, IPv6…
A tarball is commonly known as a TAR file, short for tape archive, which is…
A tar archive is a file that stores a collection of directories and files, also…
On Linux, you can quickly find out how LUNs are mapped to the underlying OS…
Keeping your Ubuntu system up-to-date is critical to ensuring a system's stability and security. This…
This website uses cookies.