Add this to your Ubuntu .bashrc
Add this to your Ubuntu .bashrc If you’re like me and you work with different versions of ubuntu servers, it helps to know which version you are working on. I just always forget where ubuntu puts it’s version info, here’s a quick way to remember easily:
# add this to your ~/.bashrc alias ubuntu-release='cat /etc/lsb-release'
So next time you login, simply run ubuntu-release and you’ll get something similar to:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.04 DISTRIB_CODENAME=jaunty DISTRIB_DESCRIPTION="Ubuntu 9.04"
