Linux Environment Variables Aptitude Questions

Linux Environment Variables Aptitude Questions: This section contains aptitude questions and answers on Linux Environment Variables.
Submitted by Nidhi, on April 28, 2020

This section contains Aptitude Questions and Answers on Linux Environment Variables.

1) There are the following statements that are given below, which of them are correct about environment variables in Linux operating system?
  1. The environment variables are used to store some values that can be used by the application.
  2. The environment variables are used to customize the behavior of the applications.
  3. The environment variables can impact the performance of the system.
  4. The environment variable used a % symbol for variables.

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. B, C, and D

2) The scope of an environment variable can be?
  1. Local
  2. Global
  3. Both
  4. None

3) Which symbol is used with the environment variable name?
  1. #
  2. @
  3. &
  4. $

4) There are the following options that are given below, which of them are the correct environment variable used in the Linux operating system?
  1. SHELL
  2. TERM
  3. PATH
  4. HOME

Options:

  1. A and B
  2. C and D
  3. A, C, and D
  4. A, B, C, and D

5) There are the following options that are given below, which of them are not correct environment variables used in the Linux operating system?
  1. USERID
  2. ENV
  3. EDITOR
  4. USER

6) There are the following statements that are given below, which is correct about the SHELL environment variables in Linux operating system?
  1. This environment variable is used to execute shell scripts.
  2. This environment variable contains the path of shell which is being used by the user.
  3. This environment variable contains the path of the compiler which is used for shell script compilation.
  4. This environment variable is set by default with the username.

7) Which of the following environment variables contains the path of the user's unique id?
  1. UID
  2. USERID
  3. USRID
  4. ID

8) Which of the following Linux command is used to set values in environment variables?
  1. setval
  2. setenv
  3. export
  4. env

9) Which of the following Linux command is used to print all environment variables?
  1. printenv
  2. env
  3. envvars
  4. envs

10) Which of the following Linux command is used to remove the value of an environment variable?
  1. removeenv
  2. remove
  3. unset
  4. delete






Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.