Home
You may like this!
56.
What command must you type as root to have the system re - scan the directories on the library path to enable programs to find dynamic libraries in these directories?
  • A.
    sysctl
  • B.
    ldconfig
  • C.
    shadow
  • D.
    init - libs
  • Answer & Explanation
  • Report
Answer : [B]
Explanation :
The ldconfig utility reads /etc/ld.so.conf and caches information on the libraries in the referenced directories, so option B is correct. The sysctl program is used to adjust run - time kernel features, but it doesn't manage libraries, so option A is incorrect. There is no standard shadow program, although /etc/shadow holds account passwords and aging information, so option C is incorrect. The init process is the first process run by the kernel; it's not used (even with options) as described in the question, so option D is incorrect.
Report
Name Email  
57.
You've determined that the SSH server is being started by the /etc/rc2.d/S16ssh startup script (or a link of that name). You want to prevent this server from running in runlevel 2. What is the most reliable way to do this?
  • A.
    Rename the script or link so that its name begins with K rather than S .
  • B.
    Delete the /etc/rc2.d directory.
  • C.
    Delete the /etc/rc2.d/S16ssh file or link.
  • D.
    Locate the corresponding Upstart configuration file and delete it.
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
Startup scripts (or, more commonly, symbolic links that point to them) that begin with the letter S are called in such a way that they start the service in question; those that begin with the letter K are called in such a way that they stop the service in question. Thus, option A will have the desired effect. Options B and C will both prevent the server from starting, but the server may continue running if you switch from another runlevel. More importantly, option B will stop the computer from starting many other potentially vital services in runlevel 2. The question clearly states that the server is being started by a SysV startup script, so there's no need to look for a competing Upstart configuration file.
Report
Name Email  
58.
Which of the following is not a common bash startup script file?
  • A.
    ~/.bash_logout
  • B.
    /etc/bash.bashrc
  • C.
    /etc/bashrc
  • D.
    ~/.profile
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The ~/.bash_logout file is a common bash logout file; it doesn't run when bash starts, so it's not a bash startup script file, and option A is correct. Options B and C are two common names for global bash non - login startup scripts, and option D is a standard name for a user login startup script for bash .
Report
Name Email  
59.
You type sysctl - a as root . What can you expect to have happen?
  • A.
    The computer will reboot immediately.
  • B.
    All processes with invalid PPID values will be terminated.
  • C.
    You will see a list of kernel keys and their values.
  • D.
    You will see an error message describing the correct use of sysctl .
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
The sysctl utility enables you to set or view run - time kernel variables (keys), and its - a option displays them all; thus, option C is correct. Option A describes the effect of typing shutdown - r now or reboot as root . Option B doesn't describe the effect of any command. Since the specified command is legal, sysctl won't display an error message, and option D is incorrect.
Report
Name Email  
60.
What directory is commonly used as a supplemental location for additional scripts called by the global bash login script?
  • A.
    /etc/bashrc.d
  • B.
    /etc/bash.extras
  • C.
    /etc/profile.d
  • D.
    /etc/scripts
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
The standard /etc/profile script provided with most Linux distributions searches /etc/profile.d and runs any scripts it finds there; therefore, option C is correct. Options A, B, and D all describe fictitious locations.
Report
Name Email