
When to Use Here-String vs Heredoc in Bash
Heredoc and Here-string are both ways to input strings into commands that read from stdin. Here's the difference between them.
Guides, how-tos and news from the NameHero team about Linux Command Line.

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.

As a project progresses, commits can get messy. The git rebase interactive feature allows you to keep a clean commit history.

While writing scripts in bash, it's important to be careful about error handling. That's what set -e -o pipefail does.
If you want to encapsulate some logic in a bash script, you must use bash getopts to process the script arguments

The tee command in Linux is useful when you want to direct the output of a command to multiple locations. Here's how to use it.

The "nmap" command allows you to scan a remote server and determine its network configuration. Here are the various nmap scan types.
Get new NameHero guides and first word on sales like the Pre-Black Friday event, straight to your inbox.