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

Computer Science :: Unix & Linux Basics

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

  2. A.

     fdisk

    B.

     fsck

    C.

     dd

    D.

     rawrite

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  4. A.

     root

    B.

     kara

    C.

     group

    D.

     user

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  6. A.

     82 and 83

    B.

     92 and 93

    C.

     63 and 64

    D.

     82 and 85

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     rename

    B.

     delete

    C.

     rm

    D.

     cp

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. A.

     grep

    B.

     tail

    C.

     head

    D.

     cat

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. What command is used to terminate a process?

  12. A.

     kill

    B.

     cancel

    C.

     haltsys

    D.

     shutdown

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  14. A.

     3$d

    B.

     3 dw

    C.

     3 x

    D.

     3 dd

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  16. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. 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?

  18. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What command is used to assign executable permission to the owner of the file named "letter"?

  20. A.

     chmod ugo + x letter

    B.

     chmod u + x letter

    C.

     chmod u + w letter

    D.

     chmod g + x letter

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum