Sail E0 Webinar

MCQs

Total Questions : 155 | Page 7 of 16 pages
Question 61. Which of the following commands can be used to change default permissions for files and directories at the time of creation
  1.    Chmod
  2.    Chown
  3.    Umask
  4.    Chgrp
 Discuss Question
Answer: Option C. -> Umask


Umask


Question 62. The command syntax to display the file 'sample.txt' one page at a time is
  1.    man sample.txt>more
  2.    cat sample.txt
  3.    cat sample.txt|more
  4.    None of the above
 Discuss Question
Answer: Option C. -> cat sample.txt|more


cat sample.txt|more


Question 63. Which of the following commands will allow the user to search contents of a file for a particular pattern
  1.    touch
  2.    grep
  3.    find
  4.    ls
 Discuss Question
Answer: Option B. -> grep


grep


Question 64. Which tar command option is used to list the files in a tape archive format?
  1.    cvf
  2.    tvf
  3.    xvf
  4.    ovf
 Discuss Question
Answer: Option B. -> tvf


tvf


Question 65. Write the command to display the current date in the form dd/mm/yyyy.
  1.    date +%d/%m/%Y
  2.    date +"%d/%m/%Y"
  3.    date +/%d/%m/20%y
  4.    date +"/%d/%m/20%y"
 Discuss Question
Answer: Option A. -> date +%d/%m/%Y


date +%d/%m/%Y


Question 66. Which one shows the name of the operating system?
  1.    uname -n
  2.    uname -r
  3.    uname -o
  4.    uname "“m
 Discuss Question
Answer: Option C. -> uname -o


uname -o


Question 67. Which command gives the first byte where the difference is in the file1 & file2?
  1.    diff
  2.    cmp
  3.    comm
  4.    ls -a
 Discuss Question
Answer: Option B. -> cmp


cmp


Question 68. How do you add (append) a file "file1? to the example.tar file
  1.    no you cannot add a file to example.tar
  2.    tar -cvf example.tar file1
  3.    tar -rvf file1 example.tar
  4.    tar -evf file1 example.tar
 Discuss Question
Answer: Option C. -> tar -rvf file1 example.tar


tar -rvf file1 example.tar


Question 69. How to execute ls command inside a vi editor?
  1.    !ls
  2.    :ls
  3.    :!ls
  4.    we can't execute
 Discuss Question
Answer: Option C. -> :!ls


:!ls


Question 70. To open a file file1 with cursor at line number 4
  1.    vi +num file1
  2.    vi +set num file1
  3.    vi + set num" file1
  4.    vi +/se nu file1
 Discuss Question
Answer: Option A. -> vi +num file1


vi +num file1


Latest Videos

Latest Test Papers