0

operating systems Online Quiz - 96

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

To create an empty file, what command is used?

  1. feel

  2. touch

  3. make

  4. finger


Correct Option: B
  1. True

  2. False


Correct Option: A
Explanation:

To solve this question, the user needs to know what a multi-user operating system is. A multi-user operating system is an operating system that allows multiple users to access and use a single computer system simultaneously. This type of operating system is commonly used in large organizations and institutions where many users need access to the same resources.

The correct answer is:

A. True

To remove a NON-empty directory, this command is used.

  1. remove -all

  2. rm- a

  3. rm -r

  4. rm


Correct Option: C
  1. Preserve Working Directory

  2. Present Workspace Directive

  3. Preserve Workable Diskspace

  4. Present Working Directory


Correct Option: D

What command is used to change your password?

  1. pass -change

  2. changepword

  3. chpassword

  4. passwd


Correct Option: D
  1. An E-mail client

  2. A text editor

  3. The UNIX telnet service

  4. An FTP client


Correct Option: B

How could you check if two strings are equal?

  1. test $a -eq $b

  2. test $a -equal $b

  3. test $a = $b

  4. sh -c test $a == $b


Correct Option: A

Which of the following would return the process ID of the sleep command?

  1. sleep 1 & echo $#

  2. test sleep 1

  3. sleep 1 & echo $?

  4. sleep 1 & echo $!


Correct Option: A,C
  1. $abc=xyz; echo $abc

  2. abc=xyz ; echo $abc

  3. export abc=xyz ; echo $abc

  4. abc=xyz; export abc=xyz ; echo $abc


Correct Option: D

How do you get help about the command "cp"?

  1. help cp

  2. man cp

  3. cp ?

  4. f2 cp


Correct Option: B

AI Explanation

To get help about the command "cp" in the terminal, you can use the "man" command followed by the command you want help with. The correct answer is B.

Option A) help cp - This option is incorrect because the "help" command is used to get help about built-in shell commands, not external commands like "cp".

Option B) man cp - This option is correct. The "man" command is used to display the manual pages for a command. By typing "man cp" in the terminal, you will get detailed information about the "cp" command, including its usage, options, and examples.

Option C) cp ? - This option is incorrect because typing "cp ?" would not give you any help or information about the "cp" command. The question mark is not recognized as a command or argument in this context.

Option D) f2 cp - This option is incorrect because typing "f2 cp" would not give you any help or information about the "cp" command. "f2" is not a recognized command or argument in this context.

The correct answer is B. Using the "man" command followed by the command you want help with, such as "man cp", will provide you with the necessary information about the "cp" command.

  1. mv new old

  2. none

  3. cp new old

  4. rm new old


Correct Option: A

What do you use to forward errors to a file?

  1. 2> filename

  2. 1> filename

  3. &> filename

  4. 2> /dev/null


Correct Option: D

What command do you have to use to go to the parent directory?

  1. cd -

  2. cd ..

  3. cd ~

  4. cd /up


Correct Option: C

How do you delete a file?

  1. rm filename

  2. less filename

  3. touch filename

  4. dl filename


Correct Option: A

With what can you stop a process?

  1. stop

  2. kill

  3. delete

  4. shupdown


Correct Option: B

How can you display a list of all files, including the hidden files?

  1. ls -a

  2. ls -all

  3. find -all

  4. find a


Correct Option: A

What does the command ls do?

  1. isplay of the contents of a file

  2. Shows a calendar

  3. Display of files and folders, present in the folder where you are

  4. Opening a file


Correct Option: C

How can you append the output of a command to a file?

  1. command < file

  2. command >> file

  3. command << file

  4. command <> file


Correct Option: B

How to create a new file without opening it?

  1. pico filename

  2. cat filename

  3. more filename

  4. touch filename


Correct Option: D

AI Explanation

To create a new file without opening it, you can use the touch command.

Option A) pico filename - This option is incorrect because pico is a text editor, not a command to create a new file without opening it.

Option B) cat filename - This option is incorrect because cat is a command used to display the contents of a file, not create a new file.

Option C) more filename - This option is incorrect because more is a command used to view a file one screen at a time, not create a new file.

Option D) touch filename - This option is correct because the touch command is used to create a new file without opening it. It updates the access and modification timestamps of the file, and if the file does not exist, it creates an empty file with the specified name.

The correct answer is Option D.

With what command you can see your user name?

  1. pwd

  2. me

  3. i

  4. whoami


Correct Option: D

With what command you can see what folder you are in?

  1. whereami

  2. place

  3. pwd

  4. trace


Correct Option: C

Which structure is found inside journal file system?

  1. mcells

  2. fragments

  3. inodes table

  4. cylinder group


Correct Option: C

The rsh command on HP-UX can be used to:

  1. execute a remote command

  2. log in and initiate a shell on a remote system

  3. This is a restricted shell on HP-UX.

  4. grant read-only access to a system


Correct Option: C

Which shell does not have history feature?

  1. Bourne shell

  2. Korn shell

  3. C shell

  4. POSIX shell


Correct Option: A
- Hide questions