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)

Viewing the file type

You can determine a file’s type by using the file command. For example, if you want to determine the type of the file /var, you can run:

elliot@ubuntu-linux:~$ file /var
/var: directory

And as you would expect, the output shows that /var is a directory. If you want to show the type of the facts.txt file, you can run:

elliot@ubuntu-linux:~$ file facts.txt 
facts.txt: ASCII text

The output shows that facts.txt is an ASCII text file.

WHAT IS ASCII?

ASCII, which is short for American Standard Code for Information Interchange, is a code for representing 128 English characters as numbers, with each letter assigned a number from 0 to 127.

Your computer doesn’t understand human language (letters), just numbers! And so each character in the English language is translated to a number. Your computer sees any text file as just a bunch of numbers piled together!

Now let’s create a soft link named soft.txt to the facts.txt file:

elliot@ubuntu-linux:~$ ln -s...