nerdexam
Cisco

300-170 · Question #57

At the bash prompt, you run the bash$ source environment-setup-x86_64-wrs-linux command. Which purpose of running this command is true?

The correct answer is D. to add SDK-specific paths to the shell environment during environment initialization. Running the source environment-setup-x86_64-wrs-linux command at the bash prompt serves to initialize the shell environment by adding SDK-specific paths and other necessary variables, making development tools and libraries accessible for software development on that system.

Automation and Orchestration

Question

At the bash prompt, you run the bash$ source environment-setup-x86_64-wrs-linux command. Which purpose of running this command is true?

Options

  • Ato set up the source for the plugins added to the shell environment
  • Bto move the build application to the target switch
  • Cto prepare the environment for the SDK installation
  • Dto add SDK-specific paths to the shell environment during environment initialization

How the community answered

(33 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    3% (1)
  • D
    88% (29)

Why each option

Running the source environment-setup-x86_64-wrs-linux command at the bash prompt serves to initialize the shell environment by adding SDK-specific paths and other necessary variables, making development tools and libraries accessible for software development on that system.

Ato set up the source for the plugins added to the shell environment

While it sets up some environment variables, its primary purpose is not specifically "plugins" but broader SDK-related paths and settings.

Bto move the build application to the target switch

This command prepares the build environment for development, not for moving built applications to a target switch, which is a deployment step.

Cto prepare the environment for the SDK installation

This command prepares the environment for using an SDK, or for building with it, rather than preparing for the SDK's installation itself.

Dto add SDK-specific paths to the shell environment during environment initializationCorrect

The source command is used to execute a script in the current shell environment, and typically, scripts named environment-setup-*-linux are designed to configure development environments by adding necessary SDK-specific paths (like PATH, LD_LIBRARY_PATH) and setting other environment variables for cross-compilation or development tools.

Concept tested: Linux shell environment setup for SDK

Topics

#SDK setup#shell environment#development tools

Community Discussion

No community discussion yet for this question.

Full 300-170 Practice