From the course: Learning Linux Command Line
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Exploring environment variables and PATH - Linux Tutorial
From the course: Learning Linux Command Line
Exploring environment variables and PATH
- [Instructor] The shell environment that we're using has a few variables or parameters which control different information and options that affect how the shell operates. We can take a look at these environment variables with the env command. There's a lot going on here. And right now we're only concerned with one of these variables, the one called path. Environment variables are a little bit beyond the scope of this course, but the path variable is one that causes problems for people sometimes and it's important to know about. We can focus on it in particular using the echo command like this. I'll write echo, dollar sign, PATH in all capital letters. In bash and other shells path is a list of paths or directories in the file system where the shell is told to look for programs or executable files outside of the current working directory. Think about using the ls command for a moment. The ls command isn't…
Contents
-
-
-
-
-
-
The Unix philosophy2m 29s
-
(Locked)
Use pipes to connect commands together2m 41s
-
(Locked)
View text files with cat, head, tail, and less4m 44s
-
(Locked)
Search for text in files and streams with grep4m 30s
-
(Locked)
Manipulate text with awk, sed, and sort6m 50s
-
(Locked)
Edit text with Vim4m 35s
-
(Locked)
Edit text with nano2m 49s
-
(Locked)
Working with tar and zip archives8m 17s
-
(Locked)
Challenge: Create and share a file28s
-
(Locked)
Solution: Create and share a file1m 48s
-
(Locked)
Output redirection5m 11s
-
(Locked)
Exploring environment variables and PATH3m 54s
-
(Locked)
Challenge: Extract information from a text file1m 8s
-
(Locked)
Solution: Extract information from a text file3m 28s
-
-
-