0

UNIX (UGC NET)

Description: Unix Information TechnologyIT Certificate Programs
Number of Questions: 15
Created by:
Tags: Unix Information Technology IT Certificate Programs
Attempted 0/15 Correct 0 Score 0

Which substitution is used for substitute shell variable in Unix?

  1. ${…}

  2. '…'

  3. *

  4. ?

  5. […]


Correct Option: A
Explanation:

This substitution is used for substitute shell variable.

Which causes the shell to perform conditional execution of pipelines and the second command is executed only if the first fails in Unix?

  1. and-if &&

  2. or-if ||

  3. seme-colon;

  4. ampersand &

  5. *


Correct Option: B
Explanation:

This causes the shell to perform conditional execution of pipelines and the second command executed only if the first fails.

Which of the following shows content when a user login in the system in Unix?

  1. SHELL

  2. LOGNAME

  3. TERM

  4. PS1

  5. MAIL


Correct Option: A
Explanation:

SHELL determines the type of shell that a user sees on login in the system.

Which of the following indicates the workstation type being used by a user in Unix?

  1. PATH

  2. PS1

  3. SHELL

  4. TERM

  5. LOGNAME


Correct Option: D
Explanation:

TERM indicates the workstation type being used by  the user in Unix.

Which contains a string of characters that are used as word separators in the command line in Unix?

  1. PATH

  2. IFS

  3. PS1

  4. SHELL

  5. TERM


Correct Option: B
Explanation:

IFS contains a string of characters that are used as word separators in the command line.

Which are a means of interconnecting commands together and the output of one command becomes the input to another in Unix?

  1. LOGNAME

  2. TERM

  3. Pipelines

  4. SHELL

  5. PS1


Correct Option: C
Explanation:

These are a means of interconnecting commands together and the output of one command becomes the input to another.

Which of the following adds new user information to the file and creates a new home directory for a user in Unix?

  1. groupadd groupname

  2. useradd username

  3. #groups username

  4. usermod

  5. PATH


Correct Option: B
Explanation:

It adds new user information to the file and creates a new home directory for the user.

Which of the following is a list of directories that a shell uses to locate executable files for commands in Unix?

  1. HOME

  2. SHELL

  3. TERM

  4. LOGNAME

  5. PATH


Correct Option: E
Explanation:

PATH is a list of directories that the shell uses to locate executable files for commands.

Which of the following creates a new user group and adds new information to /etc/group in Unix?

  1. #useradd username

  2. usermod

  3. #groupadd groupname

  4. TERM

  5. LOGNAME


Correct Option: C
Explanation:

It creates a new user group and adds the new information to /etc/group.

Which of the following is used to modify a group permission of an existing user in Unix?

  1. #useradd username

  2. #groupadd groupname

  3. usermod

  4. TERM

  5. LOGNAME


Correct Option: C
Explanation:

It is used to modify the group permissions of an existing user.

Which of the following is used to know the username before deciding what it should do in Unix?

  1. TERM

  2. SHELL

  3. LOGNAME

  4. PS1

  5. IFS


Correct Option: C
Explanation:

LOGNAME is used in shell scripts, which requires the username just before deciding what it should do.

Which of the following is a daemon that executes commands needed to be run regularly according to some schedule in Unix?

  1. Crond

  2. IFS

  3. MAIL

  4. PATH

  5. HOME


Correct Option: A
Explanation:

Crond is a daemon that executes commands that need to be run regularly according to some schedule.

What is the command in UNIX which lists a user to the group it belongs to?

  1. #groupadd groupname

  2. #groups username

  3. usermod

  4. TERM

  5. LOGNAME


Correct Option: B
Explanation:

Yes, it is correct. It  can find out which group a user belongs to.

Which of the following can be used to create your own custom prompt in Unix?

  1. SHELL

  2. TERM

  3. LOGNAME

  4. PS1

  5. Pipelines


Correct Option: D
Explanation:

PS1 is the main shell prompt string which you can use to create your own custom prompt.

Which of the following determines the storage space of all incoming mail addresses to the user?

  1. PS1

  2. SHELL

  3. TERM

  4. MAIL

  5. LOGNAME


Correct Option: D
Explanation:

MAIL determines where all incoming addresses to user is to be stored. The variable shows your user name.

- Hide questions