I just wanted to share this bash script for linux

If your Unix box doesn't support bash scripts then do not do the following.
Create a file named version. type chmod 755 version and then copy and paste the code below into the file. Then type "mv version /bin" and presto, type version. A cool full hearty command. If you know more about you're Os you could add echo commands before or after the type of os your running.

Anyways there's a cool contribution from a cool dude.

version:

#!/bin/bash
uname -a

Alias's are pretty awesome as well.
You can add the following to your ~.bash_profile. You can substitute uname -a with any commands.

alias version='uname -a'
alias crazypath='cd /to/the/crazy/long/path/that/i/hate/typing'

logout and back in or:

source ~/.bash_profile

Then type version or crazypath at the command prompt and prepare to be amazed.

[jralph@jralph-linux ~]$ version
Linux jralph-linux.local 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

jaysunn

Aliases are cool

functions are awesomer though :slight_smile: