Sail E0 Webinar

MCQs

Total Questions : 296 | Page 28 of 30 pages
Question 271. Which command is used to display the end of the file?
  1.    head - r
  2.    tail
  3.    eof
  4.    bof
  5.    None of the above
 Discuss Question
Answer: Option B. -> tail
Question 272. The seventh field of /etc/password is
  1.    password
  2.    login
  3.    shell
  4.    home
  5.    None of the above
 Discuss Question
Answer: Option C. -> shell
Question 273. Which command is used to display the device name of the terminal you are using?
  1.    who
  2.    ls
  3.    tty
  4.    stty
  5.    None of the above
 Discuss Question
Answer: Option C. -> tty
Question 274. Which of the following command is used to go to home directory?
  1.    cd..
  2.    cd/
  3.    cd
  4.    cd HOME.
  5.    None of the above
 Discuss Question
Answer: Option C. -> cd
Question 275. The command that can be used to restrict incoming messages to a user is
  1.    mesg
  2.    grep
  3.    halt
  4.    sleep
  5.    None of the above
 Discuss Question
Answer: Option A. -> mesg
Question 276. Which command is used to save the standard output in a file, as well as display it on the terminal?
  1.    more
  2.    cat
  3.    grep
  4.    tee
  5.    None of the above
 Discuss Question
Answer: Option D. -> tee
Question 277. Which of the following commands is used to copy directory structures in and out
  1.    cp
  2.    cpio
  3.    cp - p
  4.    copy
  5.    None of the above
 Discuss Question
Answer: Option B. -> cpio
Question 278. Which command is used to move all files to the bin sub-directory of the parent directory?
  1.    mv *.* /bin/
  2.    mv * /bin/*
  3.    mv * ../bin
  4.    mv * ../bin *.*
  5.    None of the above
 Discuss Question
Answer: Option C. -> mv * ../bin
Question 279. Which of the following OS treats hardware as a file system?
  1.    UNIX
  2.    DOS
  3.    Windows NT
  4.    Both A & B
 Discuss Question
Answer: Option A. -> UNIX
Question 280. Unix command to change the case of first three lines of file “shortlist” from lower to upper
  1.    $ tr ‘[a-z]’ ‘[A-Z]’ shortlist | head-3
  2.    $ head-3 shortlist | tr ‘[a-z]’ ‘[A-Z]’
  3.    $ tr head-3 shortlist ‘[A-Z]’ ‘[a-z]’
  4.    All of above
 Discuss Question
Answer: Option B. -> $ head-3 shortlist | tr ‘[a-z]’ ‘[A-Z]’

Latest Videos

Latest Test Papers