When starting with learning terminal commands on any operating system, clearing the screen is one of the things you learn. It’s also the most frequently used command and is easy to understand. But there’s a lot more to it than meets the eye. In this article, I’ll show you not only how to clear the […]
Category: VPS Hosting
How To Use rsync With “exclude” To Sync Files In Linux
The rsync command’s roots go back to 1996 – though not nearly as far back as some of the other Linux commands like awk. It was designed to efficiently sync files between two locations. At the time, the technology it used – the delta transfer algorithm – was a new one, but it has since […]
Awk Command: Everything You Need To Know
As with so many Linux tools, the awk command was developed in Bell Labs in the 1970s. It was named after its creators – Alfred Aho, Peter Weinberger, and Brian Kernighan, whose last names’ letters form “AWK”. Awk is a tool for manipulating strings. It can take a text file as an input, read its […]
How to Add Users to Sudoers in Debian
Many commands in Debian require elevated privileges. Something as simple as updating the system with: apt update Generates the following message: As you can see, you get a “permission denied” message. This is because the command can only be executed by users using a special qualifier – sudo. The “sudo” command allows you to run […]
How To Use the Bash Source Command And Why
The “source” command in bash is used to execute a script in the current shell instead of a separate one. This simple difference has a wide variety of implications as I’ll describe below. Regular users of Linux are most familiar with the source command because they use it to reload configuration changes in the bash […]
UFW Firewall Basics
Security in today’s modern age of computing is critical and there is no one security solution to solve things. Instead, it is about laying the security technologies and best practices to minimize the potential attack surface as much as possible. On that note it is critical choose what services should and shouldn’t be exposed to […]
How to Use SCP: Transfer Files from Local to Remote
While SSH is a way to log into a remote server from your local machine, it’s not a way to transfer a file from your local computer to the remote server. An SSH session works within the context of the remote server’s file system, and it doesn’t have any access to the files on your […]
How to Use Bash Sleep and Why
The “sleep” command in the bash terminal is a way to pause the execution of a script. We commonly use it to illustrate the concepts of processes to beginners, but beyond mere demonstrations, it’s quite useful for a variety of applications. In this article, I’ll show you what the sleep command does, how to use […]
What a “502 Bad Gateway” Error Means for NGINX
Every now and then, when you browse the web, you see an error message that says “502 Bad Gateway” like this: It’s a rather cryptic message, and if this is something you encounter as a user, there’s nothing you can do other than move along and try again later. But if you’re a website administrator, […]
How to Use the Nohup Command in Linux
The nohup command in Linux, allows the user to run a command without worrying that it’ll get interrupted. Normally, long-running processes that you initiate via SSH not only prevent further input but they can also be shut down when the user logs out. The nohup command prevents this, and allows the command to keep running, […]
