Tag: operating systems

Questions Related to operating systems

Which is the command used to create a file with zero bytes

  1. vi

  2. touch

  3. cat

  4. ls


Correct Option: B

How to find the 51th record of a file containing 100 records in unix

  1. head -n 51 filename |tail -1

  2. head -51 |tail -1

  3. sed -n 51p

  4. All of the above


Correct Option: D

Write a command to display a file’s contents in various formats?

  1. oc -db file_name

  2. oc -cdh filename

  3. od -cbo file_name

  4. od -cbd file_name


Correct Option: D

What is the command to display all the files in the current directory?

  1. echo *

  2. ll

  3. list

  4. cd


Correct Option: A