Now let's create some useful aliases that will make our life much more enjoyable while working on the Linux command line.
A lot of people hate to remember all the tar command options, so let's make it easy for these people then. We will create an alias named extract that will extract files from an archive:
elliot@ubuntu-linux:~$ alias extract="tar -xvf"
You can try the alias on any archive, and it will work like a charm.
Similarly, you can create an alias named compress_gzip that will create a gzip-compressed archive:
elliot@ubuntu-linux:~$ alias compress_gzip="tar -czvf"
You may also want to create an alias named soft that will create soft links:
elliot@ubuntu-linux:~$ alias soft="ln -s"
You can use the soft alias to create a soft link named logfiles that points to the /var/logs directory:
elliot@ubuntu-linux:~$ soft /var/logs logfiles
elliot@ubuntu-linux:~$ ls -l logfiles
lrwxrwxrwx 1 elliot elliot 9 Nov 4 15:08 logfiles ->...