Sail E0 Webinar

MCQs

Total Questions : 296 | Page 26 of 30 pages
Question 251. Which of the following commands is used to display your working directory?
  1.    dir
  2.    prompt $p$g
  3.    pwd
  4.    path
  5.    None of the above
 Discuss Question
Answer: Option C. -> pwd
Question 252. Which column contains all details of the permissions of a file when you issue the ls -l command?
  1.    second
  2.    fourth
  3.    third
  4.    first
  5.    None of the above
 Discuss Question
Answer: Option D. -> first
Question 253. While working with mail command, which command is used to save mail in a separate file?
  1.    s
  2.    r
  3.    w
  4.    d
  5.    None of the above
 Discuss Question
Answer: Option A. -> s
Question 254. Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?
  1.    who | tee user.lst
  2.    who > user.lst
  3.    who >> user.lst
  4.    who < user.lste
  5.    None of the above
 Discuss Question
Answer: Option A. -> who | tee user.lst
Question 255. The command used to remove the directory is;
  1.    rmdir
  2.    rd
  3.    remove
  4.    rdir
  5.    None of the above
 Discuss Question
Answer: Option A. -> rmdir
Question 256. Which symbol will be used with grep command to match the pattern pat at the end of a line?
  1.    ^pat
  2.    $pat
  3.    pat$
  4.    pat^
  5.    None of the above
 Discuss Question
Answer: Option C. -> pat$
Question 257. Which command is used to display all the lines with the string 'sales' from the file empl.lst?
  1.    cut sales empl.lst
  2.    /sales > empl.lst
  3.    grep sales empl.lst
  4.    cat | /sales > empl.lst
  5.    None of the above
 Discuss Question
Answer: Option C. -> grep sales empl.lst
Question 258. Which of the following shell's wildcards are used to match any number of characters including none?
  1.    [ijk]
  2.    [!ijk]
  3.    ?
  4.    *
  5.    None of the above
 Discuss Question
Answer: Option D. -> *
Question 259. The UNIX file system stores a date in physical blocks of
  1.    1024 bytes
  2.    2048 bytes
  3.    512 bytes
  4.    256 bytes
  5.    None of the above
 Discuss Question
Answer: Option C. -> 512 bytes
Question 260. Which command is used to link the files?
  1.    lk
  2.    ln
  3.    cp
  4.    tar
  5.    None of the above
 Discuss Question
Answer: Option B. -> ln

Latest Videos

Latest Test Papers