Linux OS Management Interview Preparation Guide Download PDF
Linux OS Management frequently Asked Questions by expert members with experience in Linux Operating System Management. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts
99 Linux Operating System Management Questions and Answers:
Table of Contents:
2 :: Code snippets
str1="45678n"
str2="123n"
f1 = fopen(file1,RDWR,RWX)
f2 = dup(f1)
write(f1,str1,len_str1)
write(f2,str2,len_str2)
o/p:
a) 12378
b) 123(newline)8(newline)
c) 123(newline)78(newline)
d) 45678(newline)123(newline)
d) 45678(newline)123(newline)
9 :: If one of the thread in multi-threaded process is blocked on an I/O, which of the following is true?
a) The entire process with block if their is no kernel supported threads
b) Other threads of the process will continue to execute even if there is no kernel supported threads
c) It depends on specific implementatation
d) All of the above
a) The entire process with block if their is no kernel supported threads
10 :: If the fork() system call returns -1, then it means?
a) No new child process is created
b) The child process is an orphan
c) The child process is in Zombie
a) No new child process is created
11 :: dup2(1,0):
a) closes the stdout and copies the stdin descriptor to stdout
b) closes the stdin and copies the stdout descriptor to stdin
c) will produce compilation error
d) None of the above
b) closes the stdin and copies the stdout descriptor to stdin
12 :: namei() is:
a) ANSI C library function
b) C library function
c) System call
d) kernel routine
d) kernel routine
14 :: read() system call on success returns:
a) 0
b) -1
c) number of character
d) none
c) number of character
16 :: The file system information is stored in:
a) Boot block
b) Super Block
c) Inode Table
d) Data Block
b) Super Block
17 :: What is the use of fcntl function?
a) locking a file
b) reading the file descriptor flag
c) changing the file status flag
d) all the above
d) all the above
18 :: Switch table is used by:
a) device special file
b) directory file
c) fifo
d) link file.
a) device special file
21 :: Each process has unique:
a) fd table
b) file table
c) inode table
d) data block table
a) fd table
22 :: Which one can be a real time schedule policy?
a) SCHED_FIFO
b) SCHED_SPF
c) SCHED_OTHER
d) SCHED_FILO
a) SCHED_FIFO
23 :: Among these files which has an ELF format:
a) shared objects
b) core
c) executables
d) all of the above
d) all of the above
24 :: Describe the use of strace command
Strace can be used to check the system calls called by the program. So, this can be used for debugging and benchmarking purposes.