Unix-1

10 Questions | Total Attempts: 286

SettingsSettingsSettings
Please wait...
Unix Quizzes & Trivia

Questions and Answers
  • 1. 
    The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:
    • A. 

      000 ^pat A. ^pat ^pat

    • B. 

      755

    • C. 

      744

    • D. 

      555

    • E. 

      None of the above

  • 2. 
    Which command is used to sort the lines of data in a file in reverse order
    • A. 

      Sort

    • B. 

      Sh

    • C. 

      St

    • D. 

      Sort -r

    • E. 

      None of the above

  • 3. 
    Which command is used to display the top of the file?
    • A. 

      Cat

    • B. 

      Head

    • C. 

      More

    • D. 

      Grep

    • E. 

      None of the above

  • 4. 
    Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
    • A. 

      Cp chap?? progs

    • B. 

      Cp chap* progs

    • C. 

      Cp chap[12] /progs/*.*

    • D. 

      Cp chap?? /progs/*

    • E. 

      None of the above

  • 5. 
    Which command is used to remove a directory?
    • A. 

      Rd

    • B. 

      Rmdir

    • C. 

      Dldir

    • D. 

      Rdir

    • E. 

      None of the above

  • 6. 
    Which of the following keys is used to replace a single character with new text?
    • A. 

      S

    • B. 

      S

    • C. 

      R

    • D. 

      C

    • E. 

      None of The above

  • 7. 
    Which command is used to extract specific columns from the file?
    • A. 

      Cat

    • B. 

      Cut

    • C. 

      Grep

    • D. 

      Paste

    • E. 

      None of the above

  • 8. 
    Which command sends the word count of the file infile to the newfile.
    • A. 

      Wc infile >newfile

    • B. 

      Wc newfile

    • C. 

      Wc infile - newfile

    • D. 

      Wc infile | newfile

    • E. 

      None of the above

  • 9. 
    Which of the following commands is used to display the directory attributes rather than its contents?
    • A. 

      Ls -1 -d

    • B. 

      Ls -1

    • C. 

      Ls -x

    • D. 

      Ls -F

    • E. 

      None of the above

  • 10. 
    Which of the following files will displayed by this command cat *ch*
    • A. 

      Patch

    • B. 

      Catch

    • C. 

      Ch

    • D. 

      All of the above

    • E. 

      C