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

Computer Science :: Unix & Linux Basics

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

  2. A.

     /boot/lilo.conf

    B.

     /etc/conf.modules

    C.

     /etc/named.boot

    D.

     /etc/lilo.conf

    E.

     None of the above


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

  4. A.

     fdisk

    B.

     fsck

    C.

     dd

    D.

     rawrite

    E.

     None of the above


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

  6. A.

     root

    B.

     kara

    C.

     group

    D.

     user

    E.

     None of the above


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

  8. A.

     82 and 83

    B.

     92 and 93

    C.

     63 and 64

    D.

     82 and 85

    E.

     None of the above


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

  10. A.

     rename

    B.

     delete

    C.

     rm

    D.

     cp

    E.

     None of the above


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

  12. A.

     grep

    B.

     tail

    C.

     head

    D.

     cat

    E.

     None of the above


  13. What command is used to terminate a process?

  14. A.

     kill

    B.

     cancel

    C.

     haltsys

    D.

     shutdown

    E.

     None of the above


  15. What command is used with vi editor to delete three words?

  16. A.

     3$d

    B.

     3 dw

    C.

     3 x

    D.

     3 dd

    E.

     None of the above


  17. What command is used to assign only read permission to all three categories of the file'letter'?

  18. A.

     chmod u + r, g + r, o - x letter

    B.

     chmod ugo = r letter

    C.

     chmod a - rw letter

    D.

     chmod go + r letter

    E.

     None of the above


  19. What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

  20. A.

     chmod go + x, u - x letter

    B.

     chmod g - x, uo + r letter

    C.

     chmod go + r, u + x letter

    D.

     chmod u - x, go + r letter

    E.

     None of the above