Browsing Tag
bash
105 posts
How to Use Environment Variables in Bash
I remember the moment environment variables finally clicked for me: I was debugging why a script worked on…
How to Archive and Compress Files in Bash
Backing up a project directory, sending a batch of log files to a colleague, or shrinking a folder…
How to Sort Files in Bash
Sorting seems like such a basic operation until you actually need to sort a CSV file by the…
How to Find Files in Bash
There was a period early in my Linux journey where I’d just browse directories manually trying to remember…
How to Copy Files and Directories in Bash
Copying files feels like it should be the simplest thing in the world, and most of the time…
How to Move and Rename Files in Bash
One of the first surprises I remember from learning Bash is that there’s no dedicated “rename” command built…
How to List Files and Directories in Bash
ls is usually the very first command anyone learns in Bash, and it’s easy to assume you already…
How to Create and Delete Directories in Bash
If you spend any real time in a Linux or macOS terminal, you’ll quickly find that managing directories…
How to Create and Delete Files in Bash
Every script I’ve ever written eventually needs to touch a file — whether that’s writing a log entry,…
How to Check File Existence in Bash
One of the habits that separates a fragile script from a reliable one is checking whether a file…