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

Computer Science :: Unix & Linux Basics

  1. Which symbol is used to separate more than one command in the same command line?

  2. A.

     $

    B.

     #

    C.

     :

    D.

     ;

    E.

     None of the above


  3. The agency that sits between the user and the UNIX system is called the

  4. A.

     logic

    B.

     profile

    C.

     shell

    D.

     erxc

    E.

     None of the above


  5. Which of the following commands is used to update access and modification times of a file?

  6. A.

     grep

    B.

     wc

    C.

     touch

    D.

     cat

    E.

     None of the above


  7. Which command is used to count just the number of characters in a file?

  8. A.

     wc - 1

    B.

     wc -c

    C.

     wc -w

    D.

     wc -r

    E.

     None of the above


  9. Which of the following commands is used to list contents of directories?

  10. A.

     ls

    B.

     lp

    C.

     dir

    D.

     tar

    E.

     None of the above


  11. Which command is used to display a file contents in octal form?

  12. A.

     cd

    B.

     od

    C.

     of

    D.

     oct

    E.

     None of the above


  13. Which command will be used with vi editor to insert text to left of cursor?

  14. A.

     s

    B.

     S

    C.

     a

    D.

     i

    E.

     None of the above


  15. In vi editor, forward search is performed using the command.

  16. A.

     :pat

    B.

     ?pat

    C.

     /pat

    D.

     All of the above

    E.

     None of the above


  17. Which of the following special shell variables is used to process number of the last background job?

  18. A.

     $!

    B.

     $#

    C.

     $0

    D.

     $*

    E.

     None of the above


  19. Which option will be used with ps command to slow the entire command line of the process being run?

  20. A.

     -4

    B.

     #NAME?

    C.

     -1

    D.

     -2

    E.

     None of the above