Linux certification sample question paper with answer set 11

Linux certification sample question paper with answer set 11.

  • You want to enable a service service-name for current run level (run level 5). Which command will you use to do so?
    • runlevel service-name on
    • enable service-name
    • chkconfig service-name on
    • chkconfig service-name enable

    Answer — chkconfig service-name on

  • Which directories contain the boot time scripts for the run level 5?
    • /etc/rc.d/rc5.d
    • /etc/rc.d/rc.5d
    • /etc/rc.d/r5.d
    • /etc/rc.d/rcv.d

    Answer — /etc/rc.d/rc5.d

  • A runlevel script has the line #chkconfig 345 25 75. What is the meaning of this line?
    • It is a comment
    • It denotes that the script will run in runlevel 3,4,5
    • It denotes that the script will run in runlevel 3, 4, 5 and the start priority is 25 and the stop priority is 75.
    • The line gives an error

    Answer — It denotes that the script will run in runlevel 3, 4, 5 and the start priority is 25 and the stop priority is 75.

  • A user ran command badblocks -w on a device containing important data files. What will be the problem?
    • No problem
    • Data on the device will be erased
    • Data on device will not be erased
    • -w is invalid option to badblocks command

    Answer — Data on the device will be erased

  • You have downloaded a package in tar.gz format. How will you uncompress the file?
    • Using tar xvf
    • Using gunzip followed by tar xvf
    • Using tar xvf followed by gunzip
    • Using bzip2 followed by tar xvf

    Answer — Using gunzip followed by tar xvf

  • You want to create a user account john. The mail box of john should lie in the directory /var/temp.What line will you add in the file /etc/login.defs?
    • MAIL_DIR=/var/temp
    • MAIL_BOX=/var/temp
    • MAIL_JOHN=/var/temp
    • MAIL_CONFIG=/var/temp

    Answer — MAIL_DIR=/var/temp

  • What does free command do?
    • Frees RAM memory
    • Frees swap memory
    • gives the amount of free and used memory space of the system
    • gives the amount of free and used memory of a filesystem

    Answer — gives the amount of free and used memory space of the system

  • Which command is used to print the processor type of a system?
    • uname -r
    • uname -n
    • uname -p
    • uname -k

    Answer — uname -p

  • A user wants to see the filename of a module currently loaded into the kernel. what should he do?
    • modinfo modulename
    • infomod modulename
    • lsmod modulename
    • modprobe modulename

    Answer — modinfo modulename

  • System administrator wants to allow the user Mac to access the at facility. What system administrator does?
    • Add name on mac in /etc/at.allow
    • Add name on mac in /etc/at
    • don’t add name on mac in /etc/at.deny
    • any of the above

    Answer — Add name on mac in /etc/at.allow

Leave a Comment