Unix-1

10 Questions | Attempts: 302
Share
SettingsSettings
Please wait...
  • 1/10 Questions

    Which command is used to display the top of the file?

    • Cat
    • Head
    • More
    • Grep
    • None of the above
Please wait...
Unix-1 - Quiz

Quiz Preview

  • 2. 

    Which command is used to remove a directory?

    • Rd

    • Rmdir

    • Dldir

    • Rdir

    • None of the above

    Correct Answer
    A. Rmdir
  • 3. 

    Which command is used to sort the lines of data in a file in reverse order

    • Sort

    • Sh

    • St

    • Sort -r

    • None of the above

    Correct Answer
    A. Sort -r
  • 4. 

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

    • Wc infile >newfile

    • Wc newfile

    • Wc infile - newfile

    • Wc infile | newfile

    • None of the above

    Correct Answer
    A. Wc infile >newfile
  • 5. 

    Which command is used to extract specific columns from the file?

    • Cat

    • Cut

    • Grep

    • Paste

    • None of the above

    Correct Answer
    A. Cut
  • 6. 

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

    • Ls -1 -d

    • Ls -1

    • Ls -x

    • Ls -F

    • None of the above

    Correct Answer
    A. Ls -1 -d
  • 7. 

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

    • Cp chap?? progs

    • Cp chap* progs

    • Cp chap[12] /progs/*.*

    • Cp chap?? /progs/*

    • None of the above

    Correct Answer
    A. Cp chap?? progs
  • 8. 

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

    • S

    • S

    • R

    • C

    • None of The above

    Correct Answer
    A. S
  • 9. 

    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:

    • 000 ^pat A. ^pat ^pat

    • 755

    • 744

    • 555

    • None of the above

    Correct Answer
    A. 000 ^pat A. ^pat ^pat
  • 10. 

    Which of the following files will displayed by this command cat *ch*

    • Patch

    • Catch

    • Ch

    • All of the above

    • C

    Correct Answer
    A. C

Quiz Review Timeline (Updated): Mar 6, 2012 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 06, 2012
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 06, 2012
    Quiz Created by
    Himasri
Back to Top Back to top
Advertisement