Configuring the Environment

Learn to configure the environment using the command line.

Start[missing "en.views.course_landing_page.learn-the-command-line.course_illustration" translation]
Environment
Lesson 1 of 1
  1. 1

    Each time we launch the terminal application, it creates a new session. The session immediately loads settings and preferences that make up the command line environment. We can configure the env...

  2. 2

    Nice. You just edited a file in the nano text editor. How does it work? [...] nano is a command line text editor. It works just like a desktop text editor like TextEdit or Notepad, except tha...

  3. 3

    You created a file in nano called ~/.bash_profile and added a greeting. How does this work? [...] ~/.bash_profile is the name of file used to store environment settings. It is commonly...

  4. 4

    What happens when you store this alias in ~/.bash_profile? [...] The [...] command allows you to create keyboard shortcuts, or aliases, for commonly used commands. 1. Here [...] creat...

  5. 5

    What happens when you store the following aliases in ~/.bash_profile? [...] [...] is set as alias for the [...] command in the bash profile. The alias is then made available in the curr...

  6. 6

    What happens when you store this in ~/.bash_profile? [...] environment variables are variables that can be used across commands and programs and hold information about the environment. 1...

  7. 7

    What happens when this is stored in ~/.bash_profile? [...] [...] is a variable that defines the makeup and style of the command prompt. 1. [...] sets the command prompt variable and ex...

  8. 8

    What happens when you type this command? [...] The [...] variable is an environment variable that displays the path of the home directory. Here by typing [...] , the terminal displays the pa...

  9. 9

    What happens when you type this command? [...] [...] is an environment variable that stores a list of directories separated by a colon. Looking carefully, [...] lists the following director...

  10. 10

    What happens when you type this command? [...] The [...] command stands for "environment", and returns a list of the environment variables for the current user. Here, the [...] command retu...

  11. 11

    Congratulations! You learned to use the bash profile to configure the environment. What can we generalize so far? The environment refers to the preferences and settings of the current user. ...

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo

Configuring the Environment

Start[missing "en.views.course_landing_page.learn-the-command-line.course_illustration" translation]