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

Computer Science :: Unix & Linux Basics

  1. Which of the following command addresses all users who are currently hooked on?

  2. A.

     write

    B.

     mail

    C.

     wall

    D.

     mesg

    E.

     None of the above


  3. Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it

  4. A.

     -r

    B.

     #NAME?

    C.

     #NAME?

    D.

     -1

    E.

     None of the above


  5. Which of the following directories contain all the Alias created by a user, including his login directory?

  6. A.

     /tmp

    B.

     /etc

    C.

     /usr

    D.

     /dev

    E.

     None of the above


  7. Which of the following commands is used to obtain a list of all files by modification time?

  8. A.

     ls -1

    B.

     ls -t

    C.

     ls -i

    D.

     ls -R

    E.

     None of the above


  9. The % key allows you

  10. A.

     to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.

    B.

     to move the cursor to the upperleft corner of the screen

    C.

     to move the cursor backward to the beginning of a word

    D.

     to move the cursor to the first column in the current line

    E.

     None of the above


  11. Which command is used to display the characteristics of a process?

  12. A.

     pid

    B.

     du

    C.

     ps

    D.

     au

    E.

     None of the above


  13. Which of the following commands is used to identify the type of file by context?

  14. A.

     ls

    B.

     cat

    C.

     file

    D.

     more

    E.

     None of the above


  15. The field separator in cut command is specified with

  16. A.

     #NAME?

    B.

     #NAME?

    C.

     -r option

    D.

     #NAME?

    E.

     None of the above


  17. Which of the following options will be used to display number of blocks used by a file?

  18. A.

     -c

    B.

     #NAME?

    C.

     #NAME?

    D.

     #NAME?

    E.

     None of the above


  19. Which option will be used with touch command to change the access time?

  20. A.

     #NAME?

    B.

     #NAME?

    C.

     #NAME?

    D.

     #NAME?

    E.

     None of the above