In the context of the Linux command line, “Bash” can refer to two separate, but related activities: Both of the above are examples of using bash. It’s important to note, however, that there are other shells than Bash. For example, there is “sh (Bourne Shell)”, zsh, fish, and more. Bash is the most common shell […]
How to Use the Pipe Command in Linux
The pipe command in Linux is one of the most frequently used tools by system administrators. If you’re not used to the command line, it’s easy to get confused. After all, it’s all text, scrolling isn’t natural without a mouse, and you can’t press “Ctrl+F” to find something. But once you’ve learned some of the […]
The Authenticity of Host Can’t Be Established: SSH Warning – What Does It Mean?
When you connect to a server via SSH for the first time, the program sends you a warning saying that it doesn’t recognize the remote host, and can’t be sure that the server to which you’re connecting, is in fact the one to which you intend to connect. This is normal, and unless you’ve manually […]
Git Local Branch Deletion: How, And Why Is It Necessary?
If you’re working on a project, you can hardly do without a version control system, and git is the very best. In fact, it’s so easy to use that you might be tempted to create various branches to test different features – which is a good thing! The ability to test your changes in git […]
How to Save in Vim: A Comprehensive Guide for Beginners
If you’re going to be using the command line in Linux, you have to know how to save in vim. Vim is a powerful text editor commonly used on Linux systems and always comes pre-installed, so you don’t have to do anything to access it. Moreover, it has many advantages compared to other file editors. […]
How To Master Git Squash Commits
Git is an invaluable tool when working on a code project involving multiple people. Version control provides a comprehensive history of a project, allowing you to trace its development from the beginning, letting you see who changed what, and also letting you go back in time to a specific version whenever you want. However, sometimes […]
How to Change the Ubuntu Hostname
An Ubuntu hostname is a unique identifier for your server. Despite what the name implies, these hostnames are primarily for internal consumption, and you won’t need to resolve it via a DNS server. So technically, there’s nothing stopping you from using a ridiculous hostname that doesn’t make sense. You could also use a hostname with […]
How To Use An htaccess RewriteRule For Better SEO And Speed
If you want to redirect all requests from a particular URL or a set of URLs to another URL, or a pattern of URLs, you can do so via an htaccess RewriteRule. In this article, I’ll start with a simple example to get started. Then I’ll explain how htaccess works and why it’s important. We’ll […]
How to Rename a File in Linux
Renaming a file in Linux is easy, once you know how. You can do it from either the command-line or using the GUI, though the latter is faster and uses fewer resources. In this tutorial, I’ll show you how to rename not just one file, but multiple files at the same time. In addition, I’ll […]
How To Open Or Add Ports Using IPTables
IPTables is the most comprehensive tool for managing traffic rules on your VPS server. The strange thing is that you might never have used it directly by invoking the “iptables” command on your server, but all the front-end tools like firewalld and CSF use IPTables in the background. We have a tutorial on NameHero on […]