Print
Hits: 2178

Take the test here (You need an account. It's free)

Q1: Which option signifies the default runlevel specified in /etc/inittab?
    
    default
    optionboot
    initdefault
    initlevel

Q2: What is the default runlevel for the single-user mode?

    Runlevel 6
    Runlevel 3
    Runlevel 1
    Runlevel 2

Q3: Which command brings the system down immediately?

    halt
    shutdown -P 0
    /etc/init.d stop
    halt-system

Q4: How do you identify the run level at which the system is operating?

    show-init
    runlevel
    init-lvl
    runlevel-list
   
Q5: Udev rules files are located in which directory?

    /etc/udev.cfg
    /etc/udev/rules.d
    /etc/udev.cfg.d
    /etc/udev.config

Q6: Which file would you edit to change the message that is displayed after login?

    /etc/issue
    /etc/skel/profile
    ~/.bashrc
    /etc/motd

Q7: Which shutdown command can be used to restart a running Linux system in 10 minutes?

    shutdown +10
    shutdown -r +10
    shutdown -R -10
    shutdown -r 6000

Q8: Which of the following commands will safely remove an external drive(/dev/sda1) from the system?

    unmount /dev/sda1
    usbeject /dev/sda1
    safe-eject /dev/sda1
    umount /dev/sda1

Q9: Which utility is used to add loadable modules to the Linux kernel?

    lsmod
    insmod
    modprobe
    addmod

Q10: Which command is used to display the list of currently loaded kernel modules?

    modprobe
    moddisplay
    ls -modules -all
    lsmod

Q11:Which command will send a message to all terminal users currently logged on the system?

    msg
    tty
    ssh
    wall

Q12: Which of the following commands will change system runlevel to single user mode?

    teleinit 1
    tty 1
    telinit 1
    inet 1
    
Q13: Which key is used to edit the boot parameters from the GRUB menu?

    b
    o
    e
    i

Q14:  Which command will build the initial RAM disk on a RHEL 6 distribution?

    buildraminit
    mk.init
    dracut
    mkfs.init

Q15:  Which of the following commands will check and fix the disk for errors and bad sectors?
 
    fstrim
    fdisk
    fsck
    fs.chk

Q16: In which location NVMe drives should show up?

    /dev/sda*
    /dev/ssd/nvme*
    /dev/sdx*
    /dev/nvme*

Q17:  Which of the following directories stores information about logical volumes?

    /dev/mapper
    /dev/lvminfo
    /dev/lvmmap
    /dev/lvmap

Q18: Which directory contains scripts used by the System V init tools?

    /etc/inittab
    /etc/init.d
    /etc/init
    /etc/sysv
 
Q19: Which of the following files defines the runlevels on a Linux system?

    /etc/initlevels
    /etc/rc.d
    /etc/inittab
    /etc/runlevel

Q20: Which of the following files contains a message to be printed to SSH users before the login prompt?

    /etc/mottd
    /etc/issue
    /etc/login.txt
    /etc/banner

Q21: Which option will suppress the banner when using the wall command to send a message to users?

    -s
    -e
    -n
    -d

Q22: Which of the following commands will start a service at boot?

    reboot start my_service.service
    load my_service.service
    systemctl enable my_service.service
    start my_service.service

Q23: Which command would you use to refresh the system after changes have been made to /etc/inittab without rebooting the system?

    source /etc/init.d
    telinit
    init 1
    refresh-inittab

Q24: Which command is used to list connected usb devices?

    listusb
    lsusb
    ls -usb
    cat /dev/usb/*

Q25: Which systemd runlevel (target) coresponds to the single-user mode under System V?

    multi-user.target
    rescue.target
    single-user.target
    graphical.target

Q26: Which directory contains information about USB devices?

    /etc/usb.d
    /dev/usb
    /usr/bin/lsusb
    /sys/bus/usb/devices

Q27: Which command is used to examine the kernel ring buffer and troubleshoot the boot process?

    cat /var/log/boot
    dmesg
    cat /root/bootlog
    kbuffer

Q28: Which command will dump the physical USB device hierarchy as a tree?
   
    lsusb --tree
    lsusb -t
    lsusb -tree
    lsusb -dump

Q29: Which command is used on a System V system for starting and stopping services?

    systemctl
    start.service
    service
    init

Q30: Which is the dafault signal number used by the kill command to end a process?

    1
    2
    9
    15