Linux Installation Process, Partitioning, and Dual-Booting Linux Quiz Part : 10
Question 1:
Which command in Linux is used to create a partition?
A) parted
B) gparted
C) fdisk
D) All of the above
Answer: D) All of the above
Question 2:
What does the /var
directory in Linux contain?
A) System logs, spool files, and transient files
B) User home directories
C) Configuration files
D) Device files
Answer: A) System logs, spool files, and transient files
Question 3:
Which command is used to display information about the CPU architecture in Linux?
A) uname -a
B) lscpu
C) lsblk
D) cat /proc/cpuinfo
Answer: B) lscpu
Question 4:
What is the purpose of the chroot
command in Linux?
A) To change the root directory for the current process
B) To create a new user
C) To change file permissions
D) To check the filesystem
Answer: A) To change the root directory for the current process
Question 5:
Which partitioning scheme is required for disks larger than 2 TB?
A) MBR
B) BIOS
C) GPT
D) ext4
Answer: C) GPT
Question 6:
What does the blkid
command do in Linux?
A) Lists all mounted file systems
B) Displays information about block devices
C) Formats a disk partition
D) Resizes a partition
Answer: B) Displays information about block devices
Question 7:
Which directory in Linux typically contains the executables of user-installed programs?
A) /bin
B) /usr/local/bin
C) /var/log
D) /opt
Answer: B) /usr/local/bin
Question 8:
What is the purpose of the /boot
partition in a Linux system?
A) To store user profiles
B) To contain the Linux kernel, bootloader, and boot-related files
C) To house the swap space
D) To store system logs
Answer: B) To contain the Linux kernel, bootloader, and boot-related files
Question 9:
Which of the following commands is used to create a new partition table in Linux?
A) mkfs
B) fdisk
C) parted
D) lsblk
Answer: C) parted
Question 10:
What is the purpose of the /root
directory in Linux?
A) To store the system kernel
B) To serve as the home directory for the root user
C) To contain user configuration files
D) To house temporary files
Answer: B) To serve as the home directory for the root user
0 Comments