Linux Fundamentals

Photo by Alex Chumak on Unsplash

Linux Fundamentals

If you're looking to get started in Linux then you have come to the right place.
Here we are going to cover the fundamentals of Linux along with the basic command structure.

What is Linux

From smartphones to cars, supercomputers to home appliances, the Linux operating system is everywhere.

Just like Windows, IOS and Mac OS, Linux is an operating System. In fact, the most popular platform on Planet, Android, is powered by the Linux operating system.

Linux Distributions

Linux has several different versions to suit any type of user. There are over 600 distributions of Linux but there are three main “families” of Linux distributions. Most other Linux distributions use one of these three distributions as their foundation.

  • Debian
    Debian, which dates back to 1993, is one of the oldest Linux distributions still being developed today. Presently, the most popular Debian-based system is Ubuntu.

  • Red Hat
    Red Hat Enterprise Linux (RHEL) is the flagship operating system and is used on servers everywhere. CentOS is the free version of Red Hat Enterprise Linux.

  • SUSE
    SUSE Linux, while not as popular as Debian-based Ubuntu or any of the Red Hat distributions, is still considered to be one of the mainstream Linux distributions.
    here are two distributions that fall under the SUSE family - SUSE Enterprise Linux and the more popular OpenSUSE. OpenSUSE is the freely offered edition and still features the latest updates.

Basic Linux Commands

  1. mkdir --> To make a directory

  2. cd --> To change the directory

  3. pwd --> Present Working Directory

  4. touch --> To create a new file

  5. cp --> To copy a file

  6. mv --> To move a file and you can rename it as well

  7. ls command--> ls command is used to list the content inside a directory.

    Different parameters can be used alongside the ls command
    ls -l --> it will list the content in a long list format

    ls -lt --> it will sort the list by displaying recently modified files at top

    ls -ltrh --> it will sort the list in reverse order in human-readable format

ls optionDescription
ls -athis command will list all the files including hidden files starting with. (dot) symbol.
ls -lto list the content in a long list format
ls -ltto list the files by displaying recently modified files at the top
ls -lrto list the files in reverse order
ls -lhto list the files in a human-readable format.
ls --versionto check the version of ls command
ls -nto list the group if and owner id instead of their names
ls -ldto list any subdirectories
ls -Rto list the content of the subdirectory as well
ls -lito list the files along with index number