Linux

Identify Swap Usage on Linux

The below script will give you a list of all the processes that have had memory swapped out, and also the amount of memory too. It’s a simple bash script which just needs to be made executable (chmod -x script.sh)   #!/bin/bash printf "%-25s %-25s %-25s\n" "PID" "Swap (kB)" "Process" Read more…

By andy, ago
Linux

Creating a new Timezone

There may be times where a new timezone is needed, where in my case, the timezone for a country was not available (Myanmar). To create a new timezone, I did the following: $ vim myanmar.zone Added the line: Zone Myanmar 6:30 - MST Saved and exited. $ sudo zic myanmar.zone -d Read more…

By andy, ago
Linux

GPG is great, and I use it all the time. I always think to myself that I do not use it enough. I refer to GPG instead of PGP since PGP is a paid for product, and GPG (or GnuPG) is the free open source equivalent. The main reasons I use GPG Read more…

By andy, ago