Skip to content

Instantly share code, notes, and snippets.

@neelabhg
Created March 6, 2017 08:19
Show Gist options
  • Save neelabhg/192394ceca0e3678eadf715804a1a3f5 to your computer and use it in GitHub Desktop.
Save neelabhg/192394ceca0e3678eadf715804a1a3f5 to your computer and use it in GitHub Desktop.
Customizations for my GNU/Linux installations
# Place this in .bashrc or another shell initialization file
# Print the amount of File system usage on terminal start
# Command taken from http://www.cyberciti.biz/tips/shell-script-to-watch-the-disk-space.html
df -H /dev/sda1 | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print "Disk usage: " $5 }'
# Place this in /etc/rc.local
# Mount a Virtualbox shared folder, if running in a VM
mount -t vboxsf homedir /home/neelabh/sf_homedir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment