Linux – Stop All Docker Containers

Managing a docker infrastructure with many containers can be tedious at times. Docker containers can be stopped like this: Using “docker ps” to see running containers, one can stop all containers one by one using the container name or id. This takes our valuable time away and since Linux is the best OS out there […]

Linux – Watch Command Output

Rather than repeating command constantly to refresh the output of it, you can use the watch command to instantly refresh the screen for changes.

Linux – Change Hostname The Easy Way

Instead of changing multiple files when modifying the server hostname, use this easy command instead:  hostnamectl set-hostname

Linux – Scan open server ports

To get a list of all ports (and the service they expose) of a server, install nmap: nmap (optional for example -p 80)  

Linux – Command History

We have all been there. You are searching for some long and complex command you manually entered 4 minutes ago, but despite you bashing the up key, you can’t seem to find it and are now having a bad day because of this. This is a trick I learned from a Linux veteran: CTRL+R This […]

Linux – Rename Multiple Files

One cannot deny that Windows made file management user friendly. It’s 2017 and still some important usability features are missing from Linux distros. Last, I had to rename multiple files in order to organize my web image assets neatly, but (being a previous Windows user) I kept bashing F2 in order te perform a bulk […]

Linux – Easy Password Generator

A really useful tool for quickly generating random passwords in Linux is pwgen. Install with sudo apt-get install pwgen (on Debian based systems) and then use pwgen to fill your screen with randomly generated passwords. It’s possible to add params in order to customize your generated passwords. These are listed below. -c Include at least one capital letter in […]

Linux server backup tools for production

There are many backup tools available to system admins. One well known file sync tool that can be used for file backup is rsync. Databases can be backed up using mysqldump. You will have to create a script that executes these programs and then run this backup script at some time intervals using crontab. However, […]

Top useful linux commands

What was that Linux command again? Well.. Not anymore! Bacause below is a list list of useful commands system admins love! ll : alias for ls -l if you enable it in ~/.bashrc (on Debian that is) nano +55 myfile : open nano editor on line 55 ln -s [target] [link name] : while symlinking, […]