Home / Computer Science / Unix & Linux Basics :: section-1

Computer Science :: Unix & Linux Basics

  1. What command do you use to add routes to a Linux router?

  2. A.

     addroute

    B.

     route

    C.

     netstat

    D.

     net

    E.

     None of the above


  3. Which of the following command is used to mount NFS filesystems?

  4. A.

     nfsmount

    B.

     knfsd

    C.

     mount

    D.

     All of the above

    E.

     None of the above


  5. To build a modularized kernel, the kernel-headers and kernel-source packages must first be installed. Where will you find the kernel-headers and kernel-source?

  6. A.

     /usr/local

    B.

     /usr/src/linux

    C.

     /usr/sre/redhat

    D.

     /usr/bin

    E.

     None of the above


  7. After you have compiled your kernel, what do you have to edit to boot your new kernel image?

  8. A.

     /boot/lilo.conf

    B.

     /etc/conf.modules

    C.

     /etc/named.boot

    D.

     /etc/lilo.conf

    E.

     None of the above


  9. To create an installation boot floppy disk from Linux (or another Unix) machine, what command could you use?

  10. A.

     fdisk

    B.

     fsck

    C.

     dd

    D.

     rawrite

    E.

     None of the above


  11. You just added a new user, kara, to the system. What group is kara added to by default?

  12. A.

     root

    B.

     kara

    C.

     group

    D.

     user

    E.

     None of the above


  13. What are the appropriate Hex codes for setting Linux swap and Linux native partition types in fdisk?

  14. A.

     82 and 83

    B.

     92 and 93

    C.

     63 and 64

    D.

     82 and 85

    E.

     None of the above


  15. What command do you use to delete a file?

  16. A.

     rename

    B.

     delete

    C.

     rm

    D.

     cp

    E.

     None of the above


  17. Which of the following command lists the last 10 lines of a file?

  18. A.

     grep

    B.

     tail

    C.

     head

    D.

     cat

    E.

     None of the above


  19. What command is used to terminate a process?

  20. A.

     kill

    B.

     cancel

    C.

     haltsys

    D.

     shutdown

    E.

     None of the above