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

Computer Science :: Unix & Linux Basics

  1. Which of the following commands is not the vi Input mode command?

  2. A.

     rch

    B.

     R

    C.

     S

    D.

     j

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following commands is used to remove files?

  4. A.

     erase

    B.

     delete

    C.

     rm

    D.

     dm

    E.

     . None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  6. A.

     :q

    B.

     :w

    C.

     q!

    D.

     :x

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. You can append to a file instead of overwriting by using the

  8. A.

     > symbols

    B.

     >> symbols

    C.

     < symbols

    D.

     << symbols

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The [line number G] key allows you

  10. A.

     to move cursor left by one position

    B.

     to move cursor right by one position

    C.

     to move cursor down by one line

    D.

     to move cursor to the beginning of the line specified by the number

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following commands is used to have a two-way communication with any person who is currently logged in?

  12. A.

     mail

    B.

     mesg

    C.

     write

    D.

     grep

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which command is used with vi editor to move the cursor to the left?

  14. A.

     i

    B.

     j

    C.

     k

    D.

     h

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of command is used to copy a file?

  16. A.

     copy

    B.

     cp

    C.

     cpio

    D.

     tar

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The special shell variable $* is used

  18. A.

     to exit status of ast command executed.

    B.

     to process number of the current shell

    C.

     to list the positional parameters

    D.

     to name the command being executed

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The cat command is used to

  20. A.

     capture a file

    B.

     display a file

    C.

     print a file

    D.

     copy a file

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum