The internet we use to connect, explore, create, and share is built on IP communication. There are times when we can’t rely on automatic addressing for various reasons. In this post, we will go through how to set a static IP address configuration on Ubuntu. Covering both graphical and command line options for setting a […]
Category: Linux Command Line
Timing Your Shell Commands Using The Time Command In Linux
Have you ever thought it would be nice to time a command? Do you end up taking out a stopwatch or your smartphone? I have good news… Linux has a command for that, the time command. The time command in Linux gives you the option to time command from the very shell you run the […]
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, […]
How To Install Pip And What You Need To Know
Earlier, I’d written about how to use Python to change directories. You can see from that, that Python is a very user-friendly language and you can already do much with it out of the box. For example, in the linked article, I used the standard library function called “os”, which is included with python, so […]
How To List Installed Packages On Ubuntu And Debian Based Systems
In this blog post, we will look at how to check installed packages on Ubuntu and Debian-based systems. This includes how to generate a list of all the installed packages, checking for a specific package, getting a count of the number of installed packages, and creating a text file of the installed packages. From there […]
How to Check If a File or Directory Exists From Bash
Linux Systems and Unix systems are composed of multiple files and directories. So it is likely that at some point you will need to verify if specific files or directories exist. In this blog post, we will look at the traditional method of checking by hand and using the test command from within shell scripts. […]
How to Use Git Fetch and What Makes it Special?
In an earlier tutorial, I showed you how to connect a VPS to Github and move files from Github to the VPS. In that tutorial, we saw how to use “git clone” to initiate a clone of a remote project that you’re starting from scratch. If you already have a repository and have been working […]
Using Git Cherry-Pick To Apply A Commit From Another Branch
Git is a distributed version control system that is used to keep track of changes to a set of computer files. This useful tool has quite many sub-commands, in this post we will look into one of those sub-commands the cherry-pick command. The cherry-pick command allows you to pick a specific commit from another git […]
How to Check Open Ports in Linux
A port in Linux is like a door number on your house, if your house was a server. Whenever someone wants to connect to your server, it needs to specify to which port it wants to connect. Depending on the port number, the server will route the request to a specific application, that will then […]
Demystifying The Bash Trap Command
Before we dig into the trap command in bash, you will need to have some understanding of signals and shell scripting. The trap command is used to catch specified signals and perform an action in response. In this blog post, we will demystify the trap command, and by the time you finish, you should be […]
