0

operating systems Online Quiz - 51

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

$ find . -type f -mtime 1

  1. List all ordinary files in current directory that have been modified within the last 1 minute

  2. List all ordinary files in current directory that have been modified within the last 1 hour

  3. List all ordinary files in current directory that have been modified within the last 24 hours

  4. List all ordinary files in current directory that have been modified within the last 48 hours


Correct Option: C

Unlike Windows, in UNIX we cannot create a directory named 'a box' i.e. space is not allowed in UNIX for file and directory naming.

  1. True

  2. False


Correct Option: B

which of the following shells support float and array data types?

  1. Korn

  2. Bash

  3. Bourne

  4. None of these


Correct Option: A

What is the output of the last echo command executed on a bash shell? $ bash $ export a=aaagggccc $ echo ${a/g/b}

  1. aaagggccc/g/b

  2. aaabbbccc

  3. aaabggccc

  4. a/g/b


Correct Option: C

Which unix text processing tools will help me to replace all the instances of "hi india" to "HiIndia"?

  1. awk

  2. sed

  3. perl

  4. emac


Correct Option: B

I opened a text file in vi editor and typed the following command while in escape mode. :3 s/abc/xyz/

  1. It looks for the all the abc strings in line 3 and replaces them to xyz.

  2. It looks for the first abc string in the first 3 lines and replaces to xyz.

  3. It looks for the first abc string in line 3 and replaces to xyz.

  4. It looks for the first 3 abc string in the file and replaces them to xyz.


Correct Option: C

What key combination is typically used to interrupt running programs?

  1. CTRL-E

  2. CTRL-C

  3. CTRL-D

  4. CTRL-I


Correct Option: B

What symbol is used to "pipe" two commands together?

  1. :

  2. ||

  3. !


Correct Option: D

What command would you use to find all files under the current directory owned by the user foo?

  1. find ./ -type file -user foo

  2. find ./ -type f -owner foo

  3. find ./ -type f -o foo

  4. find ./ -type f -user foo


Correct Option: D

If no one has physical access to the computer, the root password need not be changed.

  1. True

  2. False


Correct Option: B

What would be the correct syntax to mount the share 'data' from Windows machine 'jupiter'?

  1. mntsmb -s //jupiter/data /mnt/Data

  2. mount -t smbfs /mnt/Data //jupiter/data

  3. mount -t smbfs //jupiter/data /mnt/Data

  4. smbfs -mount //jupiter/data /mnt/Data


Correct Option: C

NFS cannot be used to increase the access to the files on the mounted filesystem.

  1. True

  2. False


Correct Option: A

A directory is stored on the hard disk like any other file.

  1. True

  2. False


Correct Option: A

What is the command to open cmd with other user'd or admin's ID?

  1. RunAs

  2. Open

  3. Run

  4. None


Correct Option: A

Select Correct Command Format

  1. c:>net use

  2. c:>Runas /user:domain\username cmd

  3. c:>net use x: \servername\Shared folder

  4. c:>Cd\


Correct Option: A,B,C,D

Command to release and renew IP Address?

  1. Ipconfig /release, Ipconfig /Renew

  2. ipconfig /rel ,Ipconfig /New

  3. ipconfig /release ,Ipconfig /New

  4. None


Correct Option: A

Heart of UNIX Operating System

  1. Kernel

  2. Shell Interpreter

  3. Command line interpreter

  4. Others


Correct Option: A

Which command used to print current user id

  1. who

  2. whoami

  3. ami

  4. others


Correct Option: B

Which command to create a directory

  1. mkdir

  2. MKdir

  3. mdir

  4. other


Correct Option: A
- Hide questions