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

Computer Science :: Unix & Linux Basics

  1. Which command is used to display all the lines with the string 'sales' from the file empl.lst?

  2. A.

     cut sales empl.lst

    B.

     /sales > empl.lst

    C.

     grep sales empl.lst

    D.

     cat | /sales > empl.lst

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  4. A.

     rch

    B.

     R

    C.

     S

    D.

     j

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  6. A.

     erase

    B.

     delete

    C.

     rm

    D.

     dm

    E.

     . None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     :q

    B.

     :w

    C.

     q!

    D.

     :x

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. A.

     > symbols

    B.

     >> symbols

    C.

     < symbols

    D.

     << symbols

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The [line number G] key allows you

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


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

  14. A.

     mail

    B.

     mesg

    C.

     write

    D.

     grep

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  16. A.

     i

    B.

     j

    C.

     k

    D.

     h

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  18. A.

     copy

    B.

     cp

    C.

     cpio

    D.

     tar

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The special shell variable $* is used

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