Table of contents
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
mkdir --> To make a directory
cd --> To change the directory
pwd --> Present Working Directory
touch --> To create a new file
cp --> To copy a file
mv --> To move a file and you can rename it as well
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 formatls -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 option | Description |
ls -a | this command will list all the files including hidden files starting with. (dot) symbol. |
ls -l | to list the content in a long list format |
ls -lt | to list the files by displaying recently modified files at the top |
ls -lr | to list the files in reverse order |
ls -lh | to list the files in a human-readable format. |
ls --version | to check the version of ls command |
ls -n | to list the group if and owner id instead of their names |
ls -ld | to list any subdirectories |
ls -R | to list the content of the subdirectory as well |
ls -li | to list the files along with index number |