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

Which command will create a soft link to a file?

  1. ls -n

  2. ln

  3. ln -s

  4. link -s


Correct Option: C
  1. ls -lrt file1

  2. ls -lR file1

  3. find . -s file1

  4. find . -name file1


Correct Option: D
  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

Which one of the following PIDs is assigned to the init program?

  1. 0

  2. 1

  3. 2

  4. 100


Correct Option: B

How can the time stamps of a file be preserved while copying a file?

  1. cp -i

  2. cp -r

  3. cp -p

  4. cp -R


Correct Option: C

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

"what does the command do? find . -type f -mtime 2"

  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