Now for our very first experience with programming! We will create a command of our own using the
alias command. But before we start, we need to reveal a small command-line trick. It’s possible to put more than one command on a line by separating each command with a semicolon character. It works like this:
Here’s the example we will use:
cd /usr; ls; cd -bin games kerberos lib64 local share tmp etc include lib libexec sbin src /home/me [me@linuxbox ˜]$
As we can see, we have combined three commands on one line. First we change directory to /usr, then we list the directory, and finally we return to the original directory (by using
cd -) so we end up where we started. ...