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

Computer Science :: Unix & Linux Basics

  1. What command is used to display the characteristics of a process?

  2. A.

     au

    B.

     ps

    C.

     du

    D.

     pid

    E.

     None of the above


  3. What command is not used to list the files chap01, chap02 and chap04?

  4. A.

     ls chap*

    B.

     ls chap[124]

    C.

     ls - x chap0[124]

    D.

     ls chap0[124]

    E.

     None of the above


  5. What command is used with vi editor to replace text from cursor to right

  6. A.

     S

    B.

     s

    C.

     R

    D.

     r

    E.

     None of the above


  7. What sign is used to back up over typing errors in vi?

  8. A.

     !

    B.

     $

    C.

     #

    D.

     @

    E.

     None of the above


  9. What sign is used to erase or kill an entire line you have typed and start you are on a new line (but not display a new prompt)?

  10. A.

     !

    B.

     $

    C.

     #

    D.

     @

    E.

     None of the above


  11. What command is used to sort the lines of data in a file in alphabetical order?

  12. A.

     sort - r

    B.

     st

    C.

     sh

    D.

     sort

    E.

     None of the above


  13. What command is used with vi editor to save file and remain in the editing mode?

  14. A.

     x

    B.

     q!

    C.

     :w

    D.

     :q

    E.

     None of the above


  15. What command is used with vi editor to move back to the beginning of a word?

  16. A.

     w

    B.

     e

    C.

     a

    D.

     b

    E.

     None of the above


  17. What command is used with vi editor to search a pattern in the forward direction?

  18. A.

     ??

    B.

     //

    C.

     ?

    D.

     /

    E.

     None of the above


  19. What command is used to add printing jobs to the queue?

  20. A.

     lpd

    B.

     lpr

    C.

     lpq

    D.

     lpc

    E.

     None of the above