How to use the basename command
The basename command is a GNU core utility for UNIX and UNIX-like systems, and is designed to remove the file suffix and leading directories from a filename. It’s a reasonable alternative to at least some uses of the cut command. You’re not likely to use it alone, but it’s an interesting tool to have available to you when constructing a complex command.
How to do fast, repeatable Linux installations #2 — Bash scripts + RPM
In Episode 1, How to do fast, repeatable Linux installations #1 -- Bash scripts, I discussed how I used a Bash script after performing a...
How to do fast, repeatable Linux installations #1 — Bash scripts
Image by: Opensource.com Some of my articles and an entire book have been about The Linux Philosophy For SysAdmins and its impact on the daily...
Play a fun math game with Linux commands
Use these commands to generate random numbers for a fun math quiz game.
Learn Bash by writing a number guessing game
Learning a new programming language can be a fun exercise.
Using ‘if’ in a Bash script
Writing a short Bash script can save typing lots of instructions at the command line.
Parsing config files with Bash
Separating config files from code enables anyone to change their configurations without any special programming skills.
How to write your first article
Open source is for everyone! And at Both.org, we encourage everyone to share their open source journey.
Top 5 mistakes every new Linux terminal user makes
Avoid these comman mistakes, and find out how to become an expert in the terminal.
Programming Bash #8: Initialization and sanity testing
In previous articles of this series we created our first, very small, one-line Bash script. We also explored the reasons for creating shell scripts and...
Programming Bash #7: Bash Program Needs Help
So far in this series we created our first, very small, one-line Bash script. We also explored the reasons for creating shell scripts and why...
Programming Bash #6: Creating a template
In the previous article in this series we created our first, very small Bash script. We also explored the reasons for creating shell scripts and...
Programming Bash #5: Automation with Scripts
For sysadmins, those of us who run and manage Linux computers most closely, we have direct access to the tools that can help us work...
Programming Bash #4: Using Loops
The ability to iterate over a section of code using various types of loops is one of the most important tools we have for performing...
Programming Bash #3: Logical Operators
In this series of articles we are looking at Bash as a programming language. In the second article, we explored some simple command line programming...
Programming Bash #2: Getting Started
Bash as a programming language We have all used Bash to issue commands. They are usually fairly simple and straightforward. But Bash can go beyond...