0

operating systems Online Quiz - 8

Description: operating systems Online Quiz - 8
Number of Questions: 20
Created by:
Tags: operating systems
Attempted 0/20 Correct 0 Score 0
  1. test $a -eq $b

  2. test a -eq b

  3. test $a -equal $b

  4. test $a = $b


Correct Option: D
  1. sleep 1 & echo $!

  2. sleep 1 & echo $?

  3. sleep 1 & echo $#

  4. sleep 1 & echo $$


Correct Option: A
  1. ls -lrt file1

  2. ls -lR file1

  3. find . -s file1

  4. find . -name file1


Correct Option: D

How can you determine the number of positional parameter passed to the script ?

  1. $# will print the same

  2. $? will print the same

  3. $! will print the same

  4. $$ will print the same


Correct Option: A

How can we know two text files are identical?

  1. if the output of “cmp -s file1 file2” is not zero

  2. if the output of “cmp -s file1 file2” is zero

  3. if the output of “cmp -s file1 file2” is one

  4. if the output of “cmp -diff file1 file2” is zero


Correct Option: B

The purpose of the nohup command is to prevent programs from closing when you log out. True or False?

  1. True

  2. False


Correct Option: A

How to send a running process to background?

  1. ctrl+c then bg

  2. ctrl+z then bg

  3. ctlr+m then bg

  4. ctrl+z then fg


Correct Option: B
  1. list all ordinary files in current dir that have been modified within last 24 hours

  2. list all ordinary files in current dir that have been modified within last 4 days

  3. list all ordinary files in current dir that have been modified within last 48 hrs

  4. list all ordinary files in current dir that have been modified within last 2 hrs


Correct Option: C
  1. echo “hello world” > temp.txt

  2. echo “hello world” | tee temp.txt

  3. echo "hello world">tmp.txt|tee tmp.txt

  4. echo "hello world">tmp.txt|print


Correct Option: B

How can you print the first 10 line of a file

  1. head +10 file

  2. cat file

  3. tail -10 file

  4. head -10 file


Correct Option: D
- Hide questions