Dear Readers, Welcome to Linux Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of Linux MCQs. These objective type Linux questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.
A. 128 bytes
B. 255 bytes
C. 32 bytes
D. 64 bytes
Ans: B
A. Ctrl + t
B. Ctrl + z
C. Ctrl + d
D. Ctrl + e
Ans: C
A. info
B. man
C. None of these
D. Both a and b
Ans: A&B
A. Ubuntu
B. Redhat
C. CentOs
D. BSD
Ans: D
A. uname -r
B. kernel
C. uname -n
D. uname -s
Ans: A
A. ls -l
B. ls -t
C. ls -a
D. ls -i
Ans: C
A. rmdir
B. rm -r
C. only b
D. Both a and b
Ans: D
A. Ctrl + Shift + h
B. Ctrl + h
C. Ctrl + Alt + h
D. None of the above
Ans: B
A. touch
B. cat
C. echo
D. All of the above
Ans: D
A. file
B. directory
C. executables
D. None of the above
Ans: A
A. C shell
B. Net Shell
C. Bash Shell
D. Z shell
Ans: B
A. script
B. session
C. both a and b
D. none of these
Ans: A
A. print
B. printr
C. printf
D. none of these
Ans: C
A. password
B. pass
C. change -p
D. passwd
Ans: D
A. login
B. users
C. who
D. which
Ans: C
A. /etc
B. /var
C. /lib
D. /bin
Ans: A
A. last
B. lastlogin
C. lastreboot
D. lastshutdown
Ans: A
A. wc -l
B. wc -c
C. wc -w
D. None of these
Ans: A
A. /sbin contain only binaries essential for booting, restoring,
Recovering, and/or repairing the system in addition to the binaries in /bin.
B. There is no difference between /bin and /sbin, they are just two directories
C. /bin contains commands that may be used by both the system administrator and by users, but which are required when no other filesystems are mounted.
D. Utilities used for system administration are stored in /sbin.
Ans: B
A. shutdown -h
B. reboot
C. init 6
D. All of the above
Ans: D
A. 6
B. 7
C. 5
D. 8
Ans: B
A. cp -r
B. cp -i
C. cp
D. none of these
Ans: A
A. cd
B. cd ~
C. Both A and B
D. none of these
Ans: C
A. .(dot)
B. $
C. _(underscore)
D. -(Hyphen)
Ans: D
A. $ cd Desktop/abc
B. $ cd Downloads/abc
C. Both a and b
D. $ cd /etc
Ans: C
A. /home/sandeep
B. /home/sandeep/Downloads
C. /home
D. None of these
Ans: A
A. /etc
B. /(root)
C. /home
D. None of these
Ans: A
A. It will ask for confirmation before every deletion.
B. It just an extra option
Ans: A
A. Move the file to different directory.
B. Renaming a file
C. Both a and b.
D. Only a.
Ans: C
A. octal
B. cat
C. oct
D. od
Ans: D
A. which
B. whatis
C. what
D. purpose
Ans: B
A. 2
B. 6
C. 4
D. 1
Ans: D
A. sudo service apache2 restart
B. sudo /etc/init.d/apache2 restart
C. Both A and B
D. Only A
Ans: C
A. ps -tree
B. pstree
C. ps -t
D. none of these
Ans: B
A. tar -xvf backup.tar
B. tar -svf backup.tar
C. tar -tvf backup.tar
D. none of these
Ans: C
A. !!
B. !-1
C. Both A and B
D. Only A
Ans: C
A. Print effective and real UID
B. Print effective and real GID
C. Print effective and real UID and GID
D. None of these
Ans: C
A. echo $SHELL
B. echo $LOGIN
C. echo $LSHELL
D. None of the Above
Ans: A
A. $!
B. $$
C. $?
D. $#
Ans: C
A. pwd
B. echo $PWD
C. Both A and B
D. Only A
Ans: C
A. any arbitrary number
B. 1
Ans: B
A. Process switches from user mode to kernel mode
B. Process switches from kernel mode to user mode
C. Kernel switches from one process to another process
D. None of these
Ans: C
A. 32768
B. 1024
C. 2048
D. 16384
Ans: A
A. &
B. nohup
C. bg
D. hup
Ans: B
A. 0 to 19
B. -20 to 19
C. -20 to 0
D. -10 to 10
Ans: B
A. 0
B. 1
C. parent process id
D. child process Id
Ans: D
A. kill kill 0
B. kill -9 kill 0
C. kill -s kill 0
D. Both B and C
Ans: D
A. echo $$ return PID of login shell and echo $? return status of last command
B. echo $$ return status of last command and echo $? return PID of login shell
C. echo $$ and echo $? return some integer value of no significance
D. All of the statements are false
Ans: A
A. nice
B. chpriority
C. renice
D. Not allowed to change process priority
Ans: C
A. Interruptible
B. Uninterruptible
C. Zombie
D. Running
Ans: C