Book Image

Learn Linux Quickly

By : Ahmed AlKabary
Book Image

Learn Linux Quickly

By: Ahmed AlKabary

Overview of this book

Linux is one of the most sought-after skills in the IT industry, with jobs involving Linux being increasingly in demand. Linux is by far the most popular operating system deployed in both public and private clouds; it is the processing power behind the majority of IoT and embedded devices. Do you use a mobile device that runs on Android? Even Android is a Linux distribution. This Linux book is a practical guide that lets you explore the power of the Linux command-line interface. Starting with the history of Linux, you'll quickly progress to the Linux filesystem hierarchy and learn a variety of basic Linux commands. You'll then understand how to make use of the extensive Linux documentation and help tools. The book shows you how to manage users and groups and takes you through the process of installing and managing software on Linux systems. As you advance, you'll discover how you can interact with Linux processes and troubleshoot network problems before learning the art of writing bash scripts and automating administrative tasks with Cron jobs. In addition to this, you'll get to create your own Linux commands and analyze various disk management techniques. By the end of this book, you'll have gained the Linux skills required to become an efficient Linux system administrator and be able to manage and work productively on Linux systems.
Table of Contents (24 chapters)

Some useful aliases

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 -&gt...