One of the most beautiful things about linux is the ability to create scripts that combine multiple commands into one. Another is that you can use alias to create commands that execute with switches by default.
Lets say you would like 'ls --color' to happen every time you typed 'ls'
just add an alias to your .bash_profile.
Code:
alias 'ls' = 'ls --color'
Simple.
Next, lets say that every day you make a backup of a directory and move it to a directory called backup.
Instead of typing in all the commands every day you simply create an executable in your path with the commands inside it. You now have a script called backup with something like the following code inside it -
Code:
#!/bin/sh
####
# backup the directory structure and move it to the backup folder
####
tar -vxzf backup_dir.tar.gz /home/mysite/public_html
mv backup_dir.tar.gz /backups
Simple.
Now when you type backup it will create a backup and move it to the backup folder automatically.
You can use this to create automatic backups of anything, you can even adapt the code and have it send emails with the backup as an attachment =)
I have a bin directory with about 150 scripts that I use all the time, and I have them backed up and sent to my email account, just incase I need them one day and my server dies!