linux
How do you continuously watch / monitor a Linux command?
Sometimes you want to continuously observe a Linux command. Instead of up arrow and enter the whole time, try this: watch -n 1 “systemctl is-active
How to see what’s running on a port in Linux
user@hostname ~ $ sudo lsof -i -P -n | grep LISTEN | grep 1025 mailcatch 1104 root 9u IPv4 27240 0t0
Linux Disk Space File System Management Commands
Introduction Here are some commands to assist with mastering disks and file space management on Linux. TL;DR ncdu is my preferred option. Disk Usage by
How to set up a fault tolerant / failover system on Linux
Problem: You need to make sure that your disks are 100% redundant. Solution: A popular way on Linux to do this is DRBD. Here are
Two good configuration files for DRBD and OCFS2
Problem: You need to know if your DRBD and OCFS2 disk fault tolerance has been setup correctly but the configuration options are overwhelming. Solution: See
How to install LAMP (Linux, Apache, Mysql (MariaDB) and PHP on Debian
Here is a link on how to install LAMP on a Debian server: Solution: Follow this article straight from the Debian website: https://wiki.debian.org/LaMp#Installation
How to check what version of Linux Mint you are running
To see which version of Linux Mint you are using, issue the following command: user@host ~ $ cat /etc/issue Linux Mint 19.1 Tessa \n \l
How to avoid having to retype a password repeatedly using ssh-keygen and ssh-copy-id
You are tired of using SSH and having to repeatedly type passwords. This slowing down your workflow, especially as you are working on multiple servers.
How to maintain SSH terminal sessions using screen on an unreliable link
Background Broken SSH sessions can be a pain in the butt because it disrupts your workflow. Broken SSH sessions may be a result of: An