Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Fundamentals of Linux

You're reading from   Fundamentals of Linux Explore the essentials of the Linux command line

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789530957
Length 234 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Oliver Pelz Oliver Pelz
Author Profile Icon Oliver Pelz
Oliver Pelz
Oliver Pelz Oliver Pelz
Author Profile Icon Oliver Pelz
Oliver Pelz
Arrow right icon
View More author details
Toc

Working with Bash shell variables

In this section, we will introduce you to Linux Bash shell variables. Bash shell variables are a great way to give symbolic names to any dynamic values, so we can reference values by a name. This helps to create very flexible and convenient systems where you often only have to change a single value, and all processes on your computer accessing this value can change their behavior automatically. Using shell variables provides a simple way to share configuration settings between multiple applications and processes in Linux, as we will see in the next section. To define a new environment variable, use the following syntax MY_VALUE=1, name of the variable equals, then the value. All Bash shell variables must not contain spaces or special characters, and, by convention, often shell variables are all uppercase. To access the stored value of the shell...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image