Linux Interview Prep_ 70 Questions & Answers for Freshers
Linux Interview Prep_ 70 Questions & Answers for Freshers
Process is an independent program in execution with its own memory space. Thread is a lightweight process that shares
It is a function used by user programs to request a service from the kernel (e.g., read(), write(), fork()).
It creates a new process by duplicating the calling process. The new process is called the child process.
A process that has completed execution but still has an entry in the process table.
Using 'ps aux | grep Z', or check for processes with STAT as Z.
A process whose parent has terminated, but it's still running. It's adopted by init (PID 1).
These replace the current process image with a new process image (e.g., execl(), execp(), execv()).
wait() waits for any child. waitpid() can wait for a specific child.
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
The process of storing and restoring the state of a CPU so that multiple processes can share a single CPU.
It's the first user-space process started by the kernel. It manages system startup and services.
Signals in the range of SIGRTMIN to SIGRTMAX with queuing support and delivery in order.
An abstraction where each process gets its own address space. It maps to physical memory via page tables.
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
When a program accesses a page not currently in physical memory, the kernel brings it in.
Used for dynamic memory allocation in older systems (controls the end of the data segment).
Integers that uniquely identify an open file in a process (0: stdin, 1: stdout, 2: stderr).
Hard link points directly to the inode; Soft link (symbolic) points to the filename.
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
Mutex is for mutual exclusion (1 lock at a time). Semaphore can allow multiple access (counting).
Kernel space has full system access; user space is limited for protection.
32. How does context switch happen between kernel and user space?
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
Monolithic kernel has all services in one large block. Microkernel runs minimal services in kernel space.
BIOS/UEFI -> Bootloader -> Kernel -> Init/Systemd -> User Processes
Temporary root file system used during boot before the real root FS mounts.
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
lsof, fuser
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
A piece of code that can be added to the kernel at runtime without rebooting.
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
Linkedin@KeerthanaGaliveeti
Linux Internals Interview Questions & Answers for Freshers
Linkedin@KeerthanaGaliveeti