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


  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


  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


  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


  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


  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


  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


  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


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

  18. A.

     copy

    B.

     cp

    C.

     cpio

    D.

     tar

    E.

     None of the above


  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