Linux multiple choice questions for interview and Linux exams preparation. Most of the Linux MCQs are asked in the interviews and they have answers and explanations.
Q) Core of Linux operating system is
The kernel is the core of the system and manages the CPU, memory, and peripheral devices. The kernel is the “lowest” level of the OS.
Q) Which one provide command interpreter environment?
A shell provides a command interpreter environment for giving instructions to the Linux kernel.
Q) Which directory contains configuration files in Linux?
/etc/ — Contains configuration files and directories.
/bin/ — Used to store user commands
/dev/ — Stores device files.
/root/ — The home directory of root, the superuser.
Q) How many times below program will print hello?
Total Number of Processes = 2n where n is number of fork system calls. So here n = 3, 23 = 8
Q) Process which terminates before the parent process exits is known as
- None of the above
Zombie process. Whereas An orphan process is a computer process whose parent process has finished or terminated, though it remains running itself.
Q) What is maximum filename size in Linux in bytes?
Linux has a maximum filename length of 255 characters for most filesystems (including EXT4), and a maximum path of 4096 characters