“Cat” is one of the most well-known commands in Linux, and has a history dating back to the 1960s and 70s. The original purpose of the command was to concatenate files and display the results on the standard output, from which functionality the command gets its name – short for “concatenate”. Throughout all the many […]
How to Use and Install the Linux “mail” Command
The Linux “mail” command sends and receives e-mails from the command line. In this tutorial, I’ll show you how to install it with a basic configuration to send e-mails over the Internet and instruct you on how to use it to send e-mails, with and without attachments. A more advanced configuration is necessary if you […]
How to Use Git to Push to a Different Remote Branch
The usual understanding of a git workflow is when you pull from a remote branch, make changes on your local machine, and then push the changes back to the branch on the remote repo. However, there are many instances where, instead of pushing the same branch, you choose another remote branch to which to push. […]
How To Clone A Git Tag
When you clone a git repo, you get the entirety of the cod base onto your computer, with all the history, all the branches, commits, all the metadata – everything. A perfect copy of the entire project is downloaded. While fine for many projects, the entire development history of a large project can be several […]
Grub Rescue: Everything You Need To Know
Grub is one of those programs that works in the background, and if everything goes well, you might not even notice that it exists. You boot your server, log in via SSH, and that’s that. What more do you need? The truth is that a lot is happening before you get to that SSH prompt, […]
Bashrc: How To Use It To Improve Your Linux Experience
Bashrc is the file in your home directory that configures various settings in your Linux terminal. “Bash” – the shell in which you issue commands to your Linux server stands for “Bourne Again Shell” in honor of Stephen Bourne who first developed the original shell in the late 1970s. The “rc” in Bash stands for […]
How To Delete Git Stashes: Everything You Need To Know
I’d earlier written about how to restore a git stash when you’re working with multiple projects. But there’s a lot more to deleting a stash that I was able to cover in that brief overview. Here’s everything you need to know about deleting a git stash. I’ll also show you how to try and recover […]
How to List Cron Jobs: Master Cron on Linux
Cron jobs are commands and scripts that the system runs periodically. Just as with cron on reboot, you can also use the systemd service manager to accomplish the same thing, but cron can be used by anyone and doesn’t require special permissions. It’s also easier to understand than systemd, but isn’t as integrated into the […]
How To Increment A Variable In Bash
Scripting is deeply integrated into bash. For example, I’d written earlier on how to efficiently concatenate strings. In the same way, you can use it as a programming language to perform various tasks, and this means that there are different ways to increment a variable in bash. In this article, I’ll show you the different […]
How to Use Crontab Reboot to Schedule Tasks
Crontab is a Linux/Unix system utility to manage the scheduling of tasks. You can use it to specify which tasks run at which times, and create complicated rules for managing their periodicity. Here at NameHero, we’ve written before about how to create cronjobs, but the kind of cronjobs in that article, aren’t the same as […]