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 […]
How to Install the NodeJS Selector in cPanel/WHM
In an earlier tutorial, I’d written about how to install Node.js on EasyApache. However, this doesn’t mean that it’s easy for users to get started with creating a Node.js application. If you have a shared hosting VPS, and you want to offer Node.js to your clients, then you need a much more streamlined way to […]
How to Install Node.js in WHM via EasyApache 4
Node.js is an environment that allows you to execute JavaScript on servers. Normally, JavaScript is run by browsers and comes with all the browser’s limitations, including running in a sandbox and not having access to system resources. But Node.js expands this functionality and allows programmers to leverage JavaScript to run on servers. This means that […]
How to Connect a VPS to GitHub and Move Files
Let’s say you’ve just received the login credentials for your new VPS and have connected to it for the first time. From here, I’ll show you how to connect to GitHub, download (clone) your existing repo, how to add new files and folders to that repo, commit your changes, and finally upload them to GitHub […]
Understanding The chown Command In Linux
The chown command in Linux is used to assign ownership. Every file and directory can have only one user and one group as an owner. In Linux, the concept of ownership is key to understanding file access, security, resource management, and accountability. In this article, I’ll show you how to use the chown command to […]
How to Remove a Directory in Linux
Unlike in Windows, where you can use the “rmdir” command to remove a directory, the same Linux command only removes empty directories. It’s true that, by default, the Windows rmdir command also only removes empty directories, but you can use the “/S” flag to force Windows to remove any directory. In Linux, you’ll have to […]
