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

Computer Science :: Unix & Linux Basics

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

  2. A.

     rename

    B.

     delete

    C.

     rm

    D.

     cp

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  4. A.

     grep

    B.

     tail

    C.

     head

    D.

     cat

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What command is used to terminate a process?

  6. A.

     kill

    B.

     cancel

    C.

     haltsys

    D.

     shutdown

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     3$d

    B.

     3 dw

    C.

     3 x

    D.

     3 dd

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

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


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

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


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

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


  15. What command is used to compare the files?

  16. A.

     ccp

    B.

     du

    C.

     cmp

    D.

     comp

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. What command is used to summarize the disk usage?

  18. A.

     disk

    B.

     du

    C.

     fdisk

    D.

     chkdsk

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What command is used to list the jobs currently in print queues?

  20. A.

     lpq

    B.

     lpr

    C.

     lprm

    D.

     lpc

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum