Unix-3

10 Questions | Total Attempts: 600

SettingsSettingsSettings
Please wait...
Unix Quizzes & Trivia

Questions and Answers
  • 1. 
    Which of the following commands is used to list contents of directories?
    • A. 

      Ls

    • B. 

      Lp

    • C. 

      Dir

    • D. 

      Tar

    • E. 

      None of the above

  • 2. 
    Which command is used to display a file contents in octal form?
    • A. 

      Cd

    • B. 

      Od

    • C. 

      Of

    • D. 

      Oct

    • E. 

      None of the above

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

      S

    • B. 

      S

    • C. 

      A

    • D. 

      I

    • E. 

      None of the above

  • 4. 
    In vi editor, forward search is performed using the command.
    • A. 

      :pat

    • B. 

      :/pat

    • C. 

      -/pat

    • D. 

      All the above

    • E. 

      None of the above

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

      $!

    • B. 

      $#

    • C. 

      $0

    • D. 

      $*

    • E. 

      None of the above

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

      -4

    • B. 

      -1

    • C. 

      -4

    • D. 

      -f

    • E. 

      None of the above

  • 7. 
    Which of the following command addresses all users who are currently hooked on?
    • A. 

      Write

    • B. 

      Mail

    • C. 

      Wall

    • D. 

      Mesg

    • E. 

      None of the above

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

      -r

    • B. 

      -x

    • C. 

      -i

    • D. 

      -1

    • E. 

      None of the above

  • 9. 
    Which of the following directories contain all the Ales created by a user, including his login directory?
    • A. 

      /tmp

    • B. 

      /etc

    • C. 

      /usr

    • D. 

      /dev

    • E. 

      None of the above

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

      Ls -1

    • B. 

      Ls -t

    • C. 

      Ls -i

    • D. 

      Ls -R

    • E. 

      None of the above