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
Linux Mint Essentials

You're reading from   Linux Mint Essentials A practical guide to Linux Mint for the novice to the professional

Arrow left icon
Product type Paperback
Published in May 2014
Publisher Packt
ISBN-13 9781782168157
Length 324 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Jay LaCroix Jay LaCroix
Author Profile Icon Jay LaCroix
Jay LaCroix
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Meet Linux Mint FREE CHAPTER 2. Creating Boot Media and Installing Linux Mint 3. Getting Acquainted with Cinnamon 4. An Introduction to the Terminal 5. Utilizing Storage and Media 6. Installing and Removing Software 7. Enjoying Multimedia on Mint 8. Managing Users and Permissions 9. Connecting to Networks 10. Securing Linux Mint 11. Advanced Administration Techniques 12. Troubleshooting Linux Mint A. Reinstalling Mint while Retaining Data B. Using the MATE Edition of Linux Mint C. Using the KDE Edition of Linux Mint Index

Using variables and conditional statements in Bash

We covered a brief introduction to Bash scripting at the end of Chapter 4, An Introduction to the Terminal. In the previous section, we created a simple script that monitors the temperature of your computer's CPU in almost real time. While useful, this script, in particular, won't save you a lot of time, since you can use the sensors command to do the same thing with almost the same amount of time. Bash really shines because of the fact that it has all the features you'd expect from an actual programming language, including if statements and variables. Bash scripting is used by many administrators to simplify and automate tasks. Paired with cron, you can easily create scripts to automatically run, and with enough skill, completely set up a Linux computer from a bare installation of a distribution to a fully functioning system for a specific purpose.

Before we continue, recall two very important requirements for scripting....

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