Linux File System MCQ Quiz

25 Questions | Answer Checking | Score | Timer | Short Explanations

Time: 20:00
Score: 0 / 25
Passing Score: 18 / 25
1. What is the root directory in Linux?
Correct answer: B. / is the starting point of the entire Linux file system.
2. Which directory stores normal users' home directories?
Correct answer: C. /home stores normal users' personal directories.
3. Which directory is the home directory of the root user?
Correct answer: B. /root is the root user's home directory.
4. Which directory stores system and service configuration files?
Correct answer: A. /etc contains configuration files.
5. Which directory contains essential user commands?
Correct answer: B. /bin contains essential user commands like ls, cp, and mv.
6. Which directory mostly contains system administration commands?
Correct answer: A. /sbin contains admin commands commonly used by root.
7. Which directory stores log files?
Correct answer: A. /var/log stores system, service, and application logs.
8. Which directory contains device files?
Correct answer: B. /dev contains device files for disks, terminals, and hardware.
9. Which directory stores temporary files?
Correct answer: A. /tmp is used for temporary files.
10. Which directory contains boot-related files?
Correct answer: B. /boot stores kernel and bootloader files.
11. Which directory is commonly used for manual temporary mounting?
Correct answer: A. Admins commonly use /mnt for manual mounts.
12. Which directory is commonly used for removable media like USB drives?
Correct answer: B. /media is commonly used for removable devices.
13. Which command shows the current directory?
Correct answer: B. pwd means print working directory.
14. Which command lists files and directories?
Correct answer: A. ls lists files and directories.
15. Which command creates an empty file?
Correct answer: B. touch creates an empty file or updates file timestamps.
16. Which command creates a directory?
Correct answer: A. mkdir creates directories.
17. Which command changes file permissions?
Correct answer: B. chmod changes read, write, and execute permissions.
18. Which command changes file owner and group?
Correct answer: C. chown changes ownership.
19. Which command shows disk usage of mounted file systems?
Correct answer: B. df shows disk usage of mounted file systems.
20. Which command shows disk usage of files and directories?
Correct answer: A. du shows size usage of files and directories.
21. Which command shows disks and partitions?
Correct answer: A. lsblk lists block devices like disks and partitions.
22. Which file controls automatic mounting at boot?
Correct answer: B. /etc/fstab controls file systems that mount automatically at boot.
23. Which symbol in ls -l output means directory?
Correct answer: C. d at the start of ls -l output means directory.
24. What does an inode store?
Correct answer: B. An inode stores metadata, not the file name.
25. Which option best describes the Linux file system?
Correct answer: B. Linux uses one directory tree starting from /.