All Stories
Get, monitor and remove the last N lines of a file in Linux
Listing and monitoring the last N lines of a log file is a common and familiar operational practice mostly to System Administrators and SRE engineers. Surely, there are better ways to...
In Linux, Parsing, Jan 11, 2023How to install sshpass on macOS
Trying to install sshpass on macOS by executing brew install sshpass I get stuck with the following message:Warning: No available formula with the name "sshpass". Did you mean sshs?We...
In macOS, Jan 10, 2023Extract XML tags and values from the CLI using sed
Extracting certain tags and values using XML is not something we do on a daily basis. In my case, I had to figure out how to extract all DevCoops blog posts titles using the sitemap.x...
In Parsing, Jan 09, 2023How to install smartctl on macOS
Getting some of your macOS system preferences can be easily achieved with smartmontools. Let’s see how to install smartctl on macOS.
In macOS, Jan 08, 2023head: illegal line count on macOS
Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...
In Parsing, Jan 07, 2023How to Install ufw on Ubuntu 22.04
Usually, Ubuntu comes with a pre-installed ufw firewall. But in some cases like using the Ubuntu docker image or Ubuntu server-based images can be an exception and you might see that ...
In Ubuntu, Jan 06, 2023Simple CLI command to extract URLs from the sitemap.xml file
I wanted to do some analytics automation so, at first I needed to pull a list of all blog post links (URLs) from the sitemap.xml file. And here’s what I came up with.
In Parsing, Jan 05, 2023How to Install Redis on Ubuntu 22.04
As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.
In Redis, Ubuntu, Jan 04, 202310 Vim commands to start with
Vim (VI IMproved), as a common text editor based on Vi, since the early 90s cause headaches to every beginner and junior Ops engineer out there, whatever is a DevOps, SysOps, Cloud Ad...
In Vim, Jan 03, 2023Install Wget on Ubuntu 22.04
In case wget is not installed on your latest Ubuntu version 22.04 it will throw the following error wget: command not found. Today I will show you how to install wget on Ubuntu 22.04 ...
In Wget, Ubuntu, Jan 02, 2023