Bash Scripting on Linux (The Complete Guide) Class 04 – Basic Math



Bash Scripting on Linux (The Complete Guide) Class 04 – Basic Math

Bash Scripting on Linux (The Complete Guide) Class 04 - Basic Math

Bash has all kinds of very useful concepts and there’s a seemingly endless amount of things to learn. So here’s a super easy video for you, all about basic math. Performing math operations in Bash is a bit different than on other platforms, so it may prevent some future confusion if you learn about these things now. And why not? This tutorial is only six minutes long and there’s plenty of worse things you can spend your time on, so check out this Bash tutorial and learn how to perform basic math functions!

— Support Linux Learning (commission earned) —
• Become a channel member here on YouTube ➜ https://learnlinux.link/join
• Become a Patron on Patreon ➜ https://learnlinux.link/patron
• Receive a 5% discount on an LPI exam voucher ➜ https://learnlinux.link/lpi-voucher
• Set up your own cloud server with Akamai Connected Cloud ➜ https://learnlinux.link/akamai

SPOIL YOURSELF WITH A LINUX-RELATED GIFT
• Mastering Ubuntu Server 4th Edition (Jay wrote that!!! 😲) ➜ http://ubuntuserverbook.com
• Affiliate store for Linux compatible hardware/accessories ➜ https://learnlinux.link/amazon
• Awesome KVM for your Homelab ➜ https://learnlinux.link/tinypilot

— Individual Sections —
00:00 – Intro
01:00 – Math is handled differently in Bash
01:28 – The “evaluate expression” command (expr) in Bash
02:37 – Multiplication in Bash (and how to use an escape symbol)
03:48 – Using variables with math expressions

OTHER BASH SCRIPTING SERIES EPISODES
– Class 01 ➜ Introduction: https://linux.video/bash1
– Class 02 ➜ Hello World: https://linux.video/bash2
– Class 03 ➜ Variables: https://linux.video/bash3
– Class 04 ➜ Math Functions: https://linux.video/bash4
– Class 05 ➜ If Statements: https://linux.video/bash5
– Class 06 ➜ Exit Codes: https://linux.video/bash6
– Class 07 ➜ While Loops: https://linux.video/bash7
– Class 08 ➜ Universal Update Script: https://linux.video/bash8
– Class 09 ➜ For Loops: https://linux.video/bash9
– Class 10 ➜ Where To Store Your Scripts: https://linux.video/bash10
– Class 11 ➜ Data Streams: https://linux.video/bash11
– Class 12 ➜ Functions: https://linux.video/bash12
– Class 13 ➜ Case Statements: https://linux.video/bash13
– Class 14 ➜ Scheduling Jobs (Part 1): https://linux.video/bash14
– Class 15 ➜ Scheduling Jobs (Part 2): https://linux.video/bash15
– Class 16 ➜ Arguments: https://linux.video/bash16
– Class 17 ➜ Building a Backup Script: https://linux.video/bash17
– Class 18 ➜ Closing: https://linux.video/bash18

— Recommended stand-alone videos from Learn Linux TV —
• How to create a bootable flash drive for installing Linux ➜ https://linux.video/flash-usb
• Installing an operating system for Raspberry Pi ➜ https://linux.video/pi-imager
• Understanding Linux permissions ➜ https://linux.video/perms
• Essential tweaks for ALL Linux Servers ➜ https://linux.video/all-servers

BRUSH UP YOUR SKILLS WITH THESE STAND-ALONE TUTORIALS
• OpenSSH Guide ➜ https://linux.video/ssh
• How to better secure OpenSSH ➜ https://linux.video/secure-ssh
• 10 Linux Terminal Tips and Tricks to Enhance Your Workflow ➜ https://linux.video/cli-tricks-1
• Over 15 Terminal Tricks You Should Learn ➜ https://linux.video/cli-tricks-2

— Recommended Courses from Learn Linux TV —
• Get up to speed with managing an OpenStack Cloud ➜ https://linux.video/openstack
• Learn how to write your own Bash Scripts ➜ https://linux.video/bash
• Install, configure, and maintain a Proxmox VE Cluster ➜ https://linux.video/pve
• Automate tedious setup jobs by learning Ansible ➜ https://linux.video/ansible
• Learn how to exit vim (and use it too) ➜ https://linux.video/vim

— Linux-related Podcasts —
• Enterprise Linux Security ➜ https://enterpriselinuxsecurity.show
• The Homelab Show ➜ https://thehomelab.show

— Fun Linux-related Projects —
• Run your own Gitlab CE Server ➜ https://linux.video/gitlab
• Build a Kubernetes Cluster on Proxmox ➜ https://linux.video/pve-k8s
• Set up your own Nextcloud Server ➜ https://linux.video/nextcloud

— Official Learn Linux TV Sites —
• Main site ➜ https://www.learnlinux.tv
• Community ➜ https://community.learnlinux.tv

— FAQ —
• Which distro do I use? ➜ https://learnlinux.link/mydistro
• My recording gear (commissions earned) ➜ https://learnlinux.link/recording-stuff

Disclaimer: LearnLinuxTV provides technical content on YouTube that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). LearnLinuxTV is not responsible for any damages that may arise from any use of this content. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production systems and hardware.

#linux #baschscripting #linuxforbeginners

Comments are closed.