Configuring the Environment
Learn to configure the environment using the command line.
StartKey Concepts
Review core concepts you need to learn to master this subject
Command line environment
Shell Command env
Alias
Environment Variables
Source Bash Profile
history
Command
Export command
HOME
Environment Variable in Unix Systems
Command line environment
Command line environment
The environment of the command line refers to the settings and preferences of the current user. It enables users to set greetings, alias
commands, variables, and much more.
Environment
Lesson 1 of 1
- 1Each 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…
- 3A bash profile is a file used to store environment settings for your terminal, and it’s accessible by the name ~/.bash_profile. When a session starts, it loads the contents of the bash profil…
- 5We can add as many aliases as we want in a bash profile. Here are two more examples: alias hy=”history” hy is set as an alias for the history command in the bash profile. The alias is then made…
- 6Environment variables are variables that can be used across commands and programs and hold information about the environment. What happens when you store this in ~/.bash_profile? export US…
- 7PS1 is an environment variable that defines the makeup and style of the command prompt. What happens when this is stored in ~/.bash_profile? export PS1=”>> “ 1. export PS1=”>> “ sets the co…
- 8What happens when you type this command? $ echo $HOME The HOME variable is an environment variable that displays the path of the home directory ~. You can specify and change the HOME variable i…
- 9PATH is an environment variable that stores a list of directories separated by a colon. What happens when you type this command? $ echo $PATH /home/ccuser/.gem/ruby/2.0.0/bin:/usr/local/sbin:/u…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory