50 REAL TIME LINUX Multiple Choice Questions and Answers-LINUX Multiple Choice Questions
50 REAL TIME LINUX Multiple Choice Questions and Answers-LINUX Multiple Choice Questions
50 REAL TIME LINUX Multiple Choice Questions and Answers-LINUX Multiple Choice Questions
1 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
(HTTP://INTERVIEWQUESTIONSANSWERSPDF.COM
HOME (http://interviewquestionsanswerspdf.com/) LINUX Multiple Choice
Questions (http://interviewquestionsanswerspdf.com/category/linux-multiplechoice-questions/) 50 REAL TIME LINUX Multiple Choice Questions
and Answers
Ads by Google
13/12/2016 12:58 PM
2 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
B. Ctrl + z
C. Ctrl + d
D. Ctrl + e
Ans: C
3. Which command(s) is/are used to get help about a command in Linux?
A. info
B. man
C. None of these
D. Both a and b
Ans: A&B
13/12/2016 12:58 PM
3 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
C. uname -n
D. uname -s
Ans: A
6. Which command is used to list all the files in your current directory(including
hidden)?
A. ls -l
B. ls -t
C. ls -a
D. ls -i
Ans: C
7. Which command is/are used to remove directory in Linux?
A. rmdir
B. rm -r
C. only b
D. Both a and b
Ans: D
8. Which key combination is used to see all the hidden files in Nautilus file
manager?
A. Ctrl + Shift + h
B. Ctrl + h
C. Ctrl + Alt + h
D. None of the above
Ans: B
9. Which of the following command is used to create file in Linux?
A. touch
13/12/2016 12:58 PM
4 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
B. cat
C. echo
D. All of the above
Ans: D
10. In Linux everything stored as a
A. file
B. directory
C. executables
D. None of the above
Ans: A
11. Which of the following is not a valid login shell in Linux?
A. C shell
B. Net Shell
C. Bash Shell
D. Z shell
Ans: B
12. Which command is used to record session in Linux?
A. script
B. session
C. both a and b
D. none of these
Ans: A
13. Which of the following command can be used as an alternative to echo
command?
A. print
13/12/2016 12:58 PM
5 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
B. printr
C. printf
D. none of these
Ans: C
14. Which command is used to change password of your Linux system?
A. password
B. pass
C. change -p
D. passwd
Ans: D
15. Which command is used see the list of users who are currently logged-in?
A. login
B. users
C. who
D. which
Ans: C
16. Which directory in Linux contains all the config file of the system?
A. /etc
B. /var
C. /lib
D. /bin
Ans: A
17. Which of the following command is used to know last shutdown/reboot date
and time?
A. last
13/12/2016 12:58 PM
6 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
B. lastlogin
C. lastreboot
D. lastshutdown
Ans: A
18. Which of the following command is used to count number of lines in a file?
A. wc -l
B. wc -c
C. wc -w
D. None of these
Ans: A
19. Which of the following statement is incorrect about /bin and /sbin directory?
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
20. Which of the following command(s) is/are used to reboot a Linux system?
A. shutdown -h
B. reboot
C. init 6
D. All of the above
Ans: D
21. Total no of run levels in a Linux system?
13/12/2016 12:58 PM
7 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
A. 6
B. 7
C. 5
D. 8
Ans: B
22. Which command is used to copy entire directory?
A. cp -r
B. cp -i
C. cp
D. none of these
Ans: A
23. Suppose I am in /etc directory and I want to go to my home directory which
command should I use?
A. cd
B. cd ~
C. Both A and B
D. none of these
Ans: C
24. Which special character should be avoided during naming a file?
A. .(dot)
B. $
C. _(underscore)
D. -(Hyphen)
Ans: D
25. Which of the following is relative path to /home/sandeep directory?
13/12/2016 12:58 PM
8 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
A. $ cd Desktop/abc
B. $ cd Downloads/abc
C. Both a and b
D. $ cd /etc
Ans: C
26. Suppose currently I am in /home/sandeep/Downloads/abc. After executing
cd ../.., where am I now?
A. /home/sandeep
B. /home/sandeep/Downloads
C. /home
D. None of these
Ans: A
27. Suppose I am in /etc directoy, after executing cd .(single dot), where am I
now?
A. /etc
B. /(root)
C. /home
D. None of these
Ans: A
28. what is the purpose of -i in rm -i command?
A. It will ask for confirmation before every deletion.
B. It just an extra option
Ans: A
29. mv command can be used to ?
A. Move the file to different directory.
13/12/2016 12:58 PM
9 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
B. Renaming a file
C. Both a and b.
D. Only a.
Ans: C
30. Which of the following command is used to display content of a file in octal
format?
A. octal
B. cat
C. oct
D. od
Ans: D
31. In Linux which of following command do you use to know the purpose of a
command?
A. which
B. whatis
C. what
D. purpose
Ans: B
32. What is the process id of init process?
A. 2
B. 6
C. 4
D. 1
Ans: D
33. Suppose I have made some changes in my Php.ini file and I want to restart
13/12/2016 12:58 PM
10 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
13/12/2016 12:58 PM
11 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
13/12/2016 12:58 PM
12 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
13/12/2016 12:58 PM
13 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
C. -20 to 0
D. -10 to 10
Ans: B
46. On success fork return ______ to parent process ?
A. 0
B. 1
C. parent process id
D. child process Id
Ans: D
47. Which of the following command kill all the process including shell ?
A. kill kill 0
B. kill -9 kill 0
C. kill -s kill 0
D. Both B and C
Ans: D
48. Which of the following statement is true ?
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
49. Priority of the process can be changed using which of the following command
?
A. nice
B. chpriority
13/12/2016 12:58 PM
14 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
C. renice
D. Not allowed to change process priority
Ans: C
50. In _______ state of a process, the process will be terminated and the
information will still be available in the process table.
A. Interruptible
B. Uninterruptible
C. Zombie
D. Running
Ans: C
iqapdf (http://interviewquestionsanswerspdf.com/author/iqapdf/)
Questions (http://interviewquestionsanswerspdf.com/category/linux-multiple-choice-questions/)
Leave a Comment
(http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-questions-answers/#respond)
13/12/2016 12:58 PM
15 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
ADD COMMENT
Required fields are marked *. Your email address will not be published.
Comment
Name *
E-mail Address *
Website
POST A QUESTION
13/12/2016 12:58 PM
16 of 16
http://interviewquestionsanswerspdf.com/2016/08/linux-multiple-choice-...
Interview Questions and Answers pdf free download for freshers experienced MCQs Real time certification basic asked objective
13/12/2016 12:58 PM