Linux: Pretty Print Mount Output

Objective: Pretty print the output of of mount command.

This is how the output of mount command looks like by default on one of my VMs – not pleasing to the eye.

To columnate the output, we can use a simple while loop and use printf for formatting.

The same output can be achieved using awk using the following syntax.

The final method is to use the column command – a utility to columnate lists.

ibrahim = { interested_in(unix, linux, android, open_source, reverse_engineering); coding(c, shell, php, python, java, javascript, nodejs, react); plays_on(xbox, ps4); linux_desktop_user(true); }