Home »
Aptitude Questions and Answers »
Linux Aptitude Questions and Answers
Linux Filesystem Hierarchy Aptitude Questions and Answers
Linux Filesystem Hierarchy Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux Filesystem Hierarchy.
Submitted by Nidhi, on May 08, 2020
This section contains Aptitude Questions and Answers on Linux Filesystem Hierarchy.
1) There are the following statements that are given below, which of them are correct about Linux File Hierarchy System?
- The Linux File Hierarchy System is also known as Linux Root File System.
- It is a standard that describes the directory and file structure in the operating system.
- In different distributions of the Linux operating system, the File Hierarchy system can be a little bit different.
- It describes where the files are located in the operating system.
Options:
- A and B
- C and D
- B, C, and D
- A, B, C, and D
Correct answer: 4
A, B, C, and D
All statements are correct about the File Hierarchy System.
2) Which of the following command is used to get information about the File Hierarchy System?
- man rfs
- man hier
- man hfs
- man fhs
Correct answer: 2
man hier
The "man hier" command is used to get information about the File Hierarchy System.
3) Which of the following Linux distribution does not follow the File Hierarchy System?
- Ubuntu
- GoboLinux
- NixOS
- Redhat
Options:
- A and B
- A and C
- B and C
- B and D
Correct answer: 3
B and C
The GoboLinux and NixOS do not follow the File Hierarchy System, They have their own different standards.
4) There are the following statements that are given below, which of them are correct about root directory in Linux?
- All directories have come inside the root directory in the Linux operating system.
- The root directory is represented by a forward slash (/).
- The root directory is represented by a backward slash (/).
- The root directory is the part of Linux Kernel
Options:
- A and B
- A and C
- A, B, and C
- A, B, C, and D
Correct answer: 1
A and B
Statements A, and B are correct about the root directory.
5) There are the following options that are given below, which of them are correct directory types in the Linux operating system?
- Binary directories
- Data directories
- Variable directories
- Memory directories
Options:
- A and B
- A and C
- A, B, and D
- A, B, C, and D
Correct answer: 4
A, B, C, and D
All given options are correct directory types in the Linux operating system.
6) Which of the following directories contains binary files?
- /sbin
- /lib
- /bin
- /var
Options:
- A and B
- A and C
- A, B, and C
- A, B, C, and D
Correct answer: 3
A, B, and C
Directories (/sbin, /lib, /bin) contains binary files.
7) Which of the following directories that contain the executable binary files that require root privileges to perform tasks?
- /sbin
- /lib
- /bin
- /opt
Correct answer: 1
/sbin
The /sbin directory contains the executable binary files that require root privileges to perform tasks.
8) Which of the following directories that contain the shared libraries in the Linux System?
- /sbin
- /lib
- /bin
- /opt
Correct answer: 2
/lib
The /lib directory contains the shared libraries in the Linux System.
9) Which of the following directories contains configuration files?
- /opt
- /var
- /boot
- /etc
Options:
- A and B
- C and D
- A, B, and D
- A, B, C, and D
Correct answer: 2
C and D
The /boot and /etc directories contains configuration files.
10) Which directory contains grub configuration file?
- /lib
- /usr
- /boot
- /etc
Correct answer: 3
/boot
The /boot directory contains grub configuration file.
11) Which of the following directories are known as data directories?
- /srv
- /media
- /home
- /opt
Options:
- A and B
- A, B, and C
- B, C, and D
- A, B, C, and D
Correct answer: 2
A, B, and C
The /home, /srv, and /media directories are data directories.
12) The "/opt" directory comes in which category of directories?
- Binary directories
- Data directories
- Variable directories
- Memory directories
Correct answer: 1
Binary directories
The /opt is a binary directory that contains binary files.
13) Which of the following is not a data directory?
- /mnt
- /root
- /home
- /proc
Correct answer: 4
/proc
The /proc is not a data directory.
14) Which of the following directory contains device files?
- /device
- /devfile
- /dev
- /sys
Correct answer: 3
/dev
The /dev directory contains device files.
15) Which of the following directories does not take disk space?
- /proc
- /dev
- /var
- /home
Options:
- A and B
- A, B, and C
- A, B, and D
- A, B, C, and D
Correct answer: 1
A and B
The /proc and /var directory does not take any disk space.
16) Which of the following directory contains interrupts related files?
- /proc
- /dev
- /var
- /home
Correct answer: 1
/proc
The /proc directory contains interrupts related files.
17) There are the following statements that are given below, which of them are correct about the "/sys" directory in the Linux operating system?
- The "/sys" directory contains kernel related information.
- The "/sys" directory contains information about hardware devices.
- The "/sys" directory contains user-related information.
- All the above
Options:
- A and B
- A and C
- B and C
- B and D
Correct answer: 1
A and B
Statements A and B are correct about the "/sys" directory.
18) Which of the following directory contains C language header files?
- /usr/cfiles
- /usr/include
- /usr/headers
- /usr/includes
Correct answer: 2
/usr/include
The /usr/include directory contains C language header files.
19) There are the following statements that are given below, which of them are correct about the "/var" directory in the Linux operating system?
- This directory contains log files.
- This directory contains cache files.
- This directory contains spool files.
- All the above
Options:
- A and B
- A and C
- B and C
- D
Correct answer: 4
D
All statements are correct about the /var directory.
20) Which of the following are non-standard directories?
- /lost+found
- /var
- /run
- /cdrom
Options:
- A and B
- A and C
- A, C, and D
- A, B, C, and D
Correct answer: 3
A, C, and D
Options A, C, and D are non-standard directories.