Tuesday, September 25, 2012

linux sample questions and answers


1. The term OSS stands for ____________.
A. Open and Secured Software
B. Open Source Software
C. Obfuscated Source Software
D. None of the above
2. The ‘var’ directory in linux file system is used to store ______________.
A. User data
B. Logs
C. Kernel
D. None of the above
3. ReiserFS is a type of _____________.
A. Directory
B. Command
C. File system
D. None of the above
4. The option used to install a given RPM file is ________.
A. -i
B. -install
C. -t
D. None of the above
5. The file /etc/passwd stores user password in _____________ form.
A. Encrypted
B. Plain text
C. Numeric
D. None of the above
Getting Started with Linux: Novell's Guide to CompTIA's Linux+ (Course 3060)  8-1
Getting Started with Linux: Novell's Guide to 
CompTIA's Linux+ (Course 3060)
1-4188-3730-x
Chapter 8 Answers
Review Questions 
1. Which of the following terms refers to a system service that does not run on a terminal? 
a. Program
b. User Process
c. Daemon Process
d. Child Process
ANSWER: c
2. What is the PID of init?  _____ 
ANSWER: 1
3. Which of the following statements are true? (Choose all that apply.)
a. A parent process may only have one child process
b. Each process is given a PPID that is used to uniquely identify it on the system
c. A child process may only have one parent process
d. All background processes have a PID and a job ID
ANSWER: c,d
4. Which of the following commands can quickly identify the child processes started by a
particular daemon?
a. top
b. lsof
c. ps
d. pstree
ANSWER: d
5. Which processes are regular users allowed to send kill signals to? _____ 
ANSWER: Their own processes only. Getting Started with Linux: Novell's Guide to CompTIA's Linux+ (Course 3060)  8-2
6. You have just run the ps aux command and notice that most daemons have an S in the
STAT column.  What does this mean? _____ 
ANSWER: It indicates that they are sleeping (waiting for an event to occur).
7. What key can you press in the top command to send the process a signal?
a. s
b. k
c. R
d. N
ANSWER: b
8. What can you type at a command prompt to run the updatedb command in the
background? _____ 
ANSWER: updatedb &
9. Which of the following key combinations can you use to pause a foreground process such
that it may be send to the background with the bg command?
a. Ctrl+c
b. Ctrl+p
c. Ctrl+z
d. Ctrl+r
ANSWER: c
10. Which of the following kill commands may be used to send the second background job a
SIGINT?
a. kill -2 %2
b. kill -1 –b 2
c. kill -9 %2
d. kill -15 2
ANSWER: a
11. If you do not specify the type of signal when using the kill or killall commands, which
signal is used by default?
a. SIGHUP
b. SIGINT
c. SIGKILL
d. SIGTERM
ANSWER: d
12. What command could you use change the priority of a process (PID=592) to run with the
highest priority? _____  Getting Started with Linux: Novell's Guide to CompTIA's Linux+ (Course 3060)  8-3
ANSWER: renice -20 592 or renice –n -20 592
13. Which action in the /etc/inittab file is used to determine the default runlevel at system
initialization? _____ 
ANSWER: initdefault
14. What is the default runlevel in SLES _____
ANSWER: 5
15. What runlevel loads all networking daemons (including NFS) but does not start a display
manager?
a. 1
b. 2
c. 3
d. 5
ANSWER: c
16. What command can you type to change your runlevel to Single User Mode? _____ 
ANSWER: init 1
17. Which of the following commands will force your system to reboot? (Choose all that
apply.)
a. init 0
b. reboot
c. powerwait
d. init 6
ANSWER: b,d
18. Which of the following commands may be used to stop the SSH daemon (sshd)? (Choose
all that apply.)
a. rcsshd stop
b. kstopsys sshd
c. /etc/init.d/sshd stop
d. /etc/rc/stopsshd
ANSWER: a,c 

No comments:

Post a Comment