0

operating systems Online Quiz - 7

Description: operating systems Online Quiz - 7
Number of Questions: 20
Created by:
Tags: operating systems
Attempted 0/20 Correct 0 Score 0

How can you display the line numbers after opening a file in vi ?

  1. :se ic

  2. :se nu

  3. :set G

  4. ctrl+n


Correct Option: B
  1. rm /home/Mydir/Fold1

  2. remove /home/Mydir/Fold1

  3. rm -r /home/Mydir/Fold1

  4. rmdir /home/Mydir/Fold1


Correct Option: C
  1. grep -l file find . -type f

  2. Find . -type f | grep file

  3. ls -1 | grep file

  4. grep file ls -1


Correct Option: A
  1. &> filename

  2. 1> filename

  3. 2> /dev/null

  4. 2> filename


Correct Option: D

How to create a new file without opening it

  1. vi filename

  2. touch filename

  3. cat filename

  4. more filename


Correct Option: B
  1. command <> file

  2. command > file

  3. command | file

  4. file > command


Correct Option: B
  1. date

  2. day

  3. calendar

  4. month


Correct Option: C
  1. search a pattern

  2. grape juice

  3. grip a file

  4. compress a file


Correct Option: A
  1. list all files

  2. list all hidden files

  3. list files with inode number

  4. list files starting with i


Correct Option: C
  1. editor

  2. variable

  3. object

  4. class


Correct Option: A
  1. change moderators

  2. change permission mode

  3. change mind set

  4. change nothing


Correct Option: B
  1. Operating system

  2. Comapny

  3. Computer Language

  4. software


Correct Option: A
  1. In high level language (C)

  2. Assembly language (low level)

  3. Machine Language

  4. All of the above


Correct Option: A

What is a Unix shell?

  1. A game

  2. A command-line interperter

  3. A sound card driver

  4. A text editor


Correct Option: B

Command to create user account in unix?

  1. createuser

  2. newuser add

  3. adduser

  4. useradd


Correct Option: D
  1. newdir flower

  2. mkdir flower

  3. crdir

  4. mkdir


Correct Option: B
- Hide questions