Linux Startup and Shutdown Interview Preparation Guide

Strengthen your Linux Shutdown & Startup interview skills with our collection of 21 important questions. Each question is designed to test and expand your Linux Shutdown & Startup expertise. Suitable for all experience levels, these questions will help you prepare thoroughly. Download the free PDF to have all 21 questions at your fingertips. This resource is designed to boost your confidence and ensure youre interview-ready.
Tweet Share WhatsApp

21 Linux Shutdown & Startup Questions and Answers:

1 :: Single user mode shell runs as:
a) Admin user
b) Root user
c) normal user
d) Log user

b) Root user
Download PDFRead All Linux Shutdown & Startup Questions

2 :: Which is the only partition mounted in Single user mode?
a) boot
b) usr
c) root
d) tmp

c) root

3 :: Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed?
a) Sched daemon
b) Swap daemon
c) Init daemon
d) Process daemon

b) Swap daemon

4 :: The process id of init process is:
a) -1
b) 0
c) 1
d) 2

c) 1

5 :: The shell used for Single user mode shell is:
a) bash
b) Csh
c) ksh
d) sh

d) sh
Download PDFRead All Linux Shutdown & Startup Questions

6 :: Bootstrapping is also known as:
a) Quick boot
b) Cold boot
c) Hot boot
d) Fast boot

b) Cold boot

7 :: At the end of kernel bootstrap, which process is started?
a) /etc/init
b) /etc/sched
c) /etc/swap
d) /etc/kernel

a) /etc/init

8 :: The process of starting up a computer is known as:
a) Boot Loading
b) Boot Record
c) Boot Strapping
d) Booting

c) Boot Strapping

9 :: In this program the allocated memory block can store
<pre lang="c" line="1" cssfile="hk1_style">
#include<stdio.h>
#include<stdlib.h>

int main()
{
int *ptr;
ptr = malloc(10);
return 0;
}
a) int
b) char
c) float
d) all of the mentioned

d) all of the mentioned
Explanation:
When the malloc() is used without typecasting the default type is void*.

10 :: Please tell me output of this program?

#include<stdio.h>
#include<stdlib.h>

int main()
{
int *ptr;
ptr = (int *)calloc(1,sizeof(int));
if (ptr != 0)
printf("%dn",*ptr);
return 0;
}
a) 0
b) -1
c) garbage value
d) none of the mentioned

a) 0
Explanation:
The memory allocated by calloc() contains 0 until process does not make any change to it.
Output:
[root@localhost google]# gcc -o san san.c
[root@localhost google]# ./san
0
[root@localhost google]
Download PDFRead All Linux Shutdown & Startup Questions