Sail E0 Webinar

MCQs

Total Questions : 149 | Page 2 of 15 pages
Question 11. Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
  1.    ^pat
  2.    pat$
  3.    $pat
  4.    pat^
 Discuss Question
Answer: Option A. -> ^pat
Question 12. Which command is used to sort the lines of data in a file in reverse order
  1.    sort
  2.    st
  3.    sort -r
  4.    sh
 Discuss Question
Answer: Option C. -> sort -r
Question 13. Which command is used to display the top of the file?
  1.    head
  2.    cat
  3.    grep
  4.    more
 Discuss Question
Answer: Option A. -> head
Question 14. Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?
  1.    chmod u+r ??? emp
  2.    chmod 777 emp*
  3.    chmod 222 emp?
  4.    chmod u+x emp[1-3]
 Discuss Question
Answer: Option D. -> chmod u+x emp[1-3]
Question 15. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
  1.    cp chap?? progs
  2.    cp chap[12] /progs/*.*
  3.    cp chap?? /progs/*
  4.    cp chap* progs
 Discuss Question
Answer: Option A. -> cp chap?? progs
Question 16. Which command is used to remove a directory?
  1.    rd
  2.    rdir
  3.    rmdir
  4.    dldir
 Discuss Question
Answer: Option C. -> rmdir
Question 17. Which command is used to remove the read permission of the file 'note' from both the group and others?
  1.    chmod go-x note
  2.    chmod go-r note
  3.    chmod go+rw note
  4.    chmod go+r note
 Discuss Question
Answer: Option B. -> chmod go-r note
Question 18. Which command sends the word count of the file infile to the newfile.
  1.    wc infile - newfile
  2.    wc newfile
  3.    wc infile >newfile
  4.    wc infile | newfile
 Discuss Question
Answer: Option C. -> wc infile >newfile
Question 19. Which command is used to extract specific columns from the file?
  1.    grep
  2.    cut
  3.    paste
  4.    cat
 Discuss Question
Answer: Option B. -> cut
Question 20. Which of the following keys is used to replace a single character with new text?
  1.    r
  2.    S
  3.    R
  4.    s
 Discuss Question
Answer: Option D. -> s

Latest Videos

Latest Test Papers