Operating System Architecture Set 26

On This Page

This set of Operating System Architecture Multiple Choice Questions & Answers (MCQs) focuses on Operating System Architecture Set 26

Q1 | The following commands gives the output like this #cat file1 file2#cat: file1: No such file or directory helloIf we execute the command “cat file1 file2 1>2 2>&1” the output would be
  • cat: file1: no such file or directory hello
  • no output is displayed
  • cat: 1>2: no such file or directory
  • hello
Q2 | cat < file1 >> file2 | file3
  • file1 content will be appended to file2 and finally stored in file3
  • file1 content will be appended to file2 and file3 will be ignored
  • file2 and file3 will have same content
  • syntax error
Q3 | Executing cat /etc/password > /dev/sda as superuser will
  • write data into a regular file called/dev/sda
  • write data to the physical device sda
  • it
  • none of the above
Q4 | rom where would the read statement read if the following statements were executed? exec < file1 exec < file2 exec < file3 read line
  • it would read all the files
  • it would not read any files
  • t would read all the files in reverse order
  • it would read only file3