Dig is a Linux tool standing for “Domain Information Groper” (yeah, it’s weird, but it is what it is). It’s used to get DNS information for a particular domain. Other tools do this, most notably “ping”, but dig allows users to go a step further and query specific DNS servers. This is useful for debugging, […]
Category: VPS Hosting
How to Use Bash Function Arguments
We’ve seen how bash shell scripts work in Linux, and allow you to automate complex actions. Bash functions are essential to shell scripts – they help keep code clean and modular. While bash isn’t a traditional programming language, there are many similarities, even though it doesn’t have some more advanced functionality than modern programming languages, […]
How to Use the “docker volume create” Command
We’ve seen the usefulness of docker, and how we can use it to run applications normally requiring huge amounts of configuration such as web servers and databases. This seems like the perfect solution for complex packages that require expert maintenance and setup. And it is! There’s a reason why docker is widely used and loved. […]
How to Manager Docker Memory Limits
Using docker can become addictive. Once you see how easy it is to download and start a container running an application that normally requires heavy configuration – like a web server, for example – you start to think of everything in terms of docker containers. But with this comes risks. Docker containers can grow in […]
Should You SSH Into a Docker Container?
In the article on how to fix the Docker “permission denied” error, we saw that we can use docker to easily set up pre-configured instances of applications so that we don’t have to know too much about setting it up and running it ourselves. Long-running applications like database servers and web servers that require complex […]
How to Append to a File in Bash
From the point of view of someone who’s not very experienced with Linux, it can seem to be a very niche scenario where you’d want to append something to a file. But as soon as you begin managing a server, you’ll see we have many reasons to add content to a file. As a result, […]
How to Use Bash Functions
A bash function is a way to encapsulate some functionality that you foresee yourself reusing repeatedly. Last week, I wrote about using a bash alias for complex commands, and we saw that functions could be used similarly for commands that require dynamic arguments instead of static ones. But we can use functions for a lot […]
Host Like A Pro With CloudShield
Designing the infrastructure for NameHero is something I’m personally very passionate about. When cloud computing started gaining traction in the late 2000s, I was pumped. Finally, I could build a hosting stack that would seamlessly scale with website traffic—something that had been a chronic pain point for all my businesses. In late 2014, when I […]
How to Use a Bash Alias in Linux
When you first start using Linux, you’ll need only a handful of commands. As you gain experience, you learn more of them, but the complexity of the commands increases. Commands like awk, df, git, etc., all have a huge range of options and endless combinations of them. Every Linux system administrator and every server has […]
How to Set Environment Variables in zsh
Zsh is a shell program like bash. While it has many improvements and features that bash doesn’t have – like autocompletion and improved history navigation – bash is still the standard shell everyone is used to. You can mostly run bash scripts in zsh without any change since it’s designed to be compatible. Regarding setting […]
