
Bash Conditional Expressions: [[ vs [ vs test
In bash scripts, we use conditional statements frequently. Whether it’s in an “if fi” logic block or within a “while” or “do” loop, we evaluate statements all the time...
Guides, how-tos and news from the NameHero team, newest first.

In bash scripts, we use conditional statements frequently. Whether it’s in an “if fi” logic block or within a “while” or “do” loop, we evaluate statements all the time...

Bash in Linux allows us to set functions that run when certain signals are generated - either by the script, or the shell. Here's how.

When coding a program, you usually have a full IDE set up with autocomplete and stack tracing, allowing you to pause execution at any point and see what’s going on under...

Echo and printf can both be used in bash for outputting text. However, echo is for quick output, whereas printf gives you more power.

Bash command substitution comes in two flavors - parentheses and backticks. Here's the difference between them.

Heredoc and Here-string are both ways to input strings into commands that read from stdin. Here's the difference between them.

Linux offers various methods for referencing files and directories through other files and directories, without creating copies of the original. If you have color coding...

Cron job logs keep track of which cron jobs run, and their details. This helps with troubleshooting and performance management.

Both df and du are Linux commands for estimating disk usage, but they differ in their focus. Df stands for “disk free”, and du stands for disk usage. The first shows the...

Git bisect is a useful tool that git provides, allowing you to narrow down the commit that introduced a bug in your project.
Get new NameHero guides and first word on sales like the Pre-Black Friday event, straight to your inbox.