# Basic of Linux | Basic Linux Commands

So Let's Start The Journey *🚀*

### Introduction to Linux

![](https://opensource.com/sites/default/files/lead-images/tux_linux_penguin_code_binary.jpg align="center")

Linux is an ***Open Source Operating System*** Modelled on ***Unix***, and Developed in C Language.

So here is the term Open Source Software(OSS) What Does it Mean?

### **Open Source Operating System**

Open Source Software is Software Which Distributed for modification

* It Can be Changed, Modified, or Updated or it can be made in such a way for their need which is done by Programmer, Developer.
    
* It offers a valuable learning opportunity for programmers.
    
* More Secure(By Identifying Bug and Fixed)
    
* Used For Long Term Projects
    

### Benefit of Linux

* Security is Top-Notch
    
* Allows Multi-User & Multi-Tasking
    
* Powerful Shell and Multiple Flavours(Flavours Like Ubuntu, Kali-Linux, Red Hat,
    
    Cent-OS)....etc.
    
* Update come Frequently
    
* License Freedom to reuse and re-publish the code.
    
* Reduce the Monitoring Cost
    
* Huge Base of developers that freely provide support.
    

### Linux Architecture

![](https://media.geeksforgeeks.org/wp-content/uploads/20200105215737/Untitled-Diagram-215-1.jpg align="center")

Kernel (It is a Heart of OS). *Shell* is the *interface* which allows to talk with *Kernel.*

(To Talk With Kernel we need Sheel) Sheel -------&gt; Kernel ----&gt; Hardware

### How to Use Linux

![](https://www.opensourceforu.com/wp-content/uploads/2017/02/Tux-with-tablet.jpg align="center")

Basically There are some ways by which you can use Linux on your pc

1st way is By using Cloud Services like (Amazon AWS Ec2 and Azure)

2nd way by using VM(Virtual Machine)

### Basic Linux Commands

![](https://dyclassroom.com/image/topic/reference-linux/linux-commands/logo.png align="center")

Linux -&gt; Everything work in Directory

Directory -&gt; folder Structure

Linux starts with `/`

Root `/` file contain

![](https://www.devopsschool.com/blog/wp-content/uploads/2022/04/linux-file-system-tutorial-1.png align="center")

`clear` to clear entire Screen in Your Terminal.

`pwd` it shows the present working Directory ,to check in which folder/path you are in.

`mkdir` (make a Directory) to make a folder.

`ls` list (to check which file/folder are there/present in that path).

`whoami` to check current login user.

`touch xyz.txt` `touch` touch command is used to create a file

`touch python react js` to create multiple files.

`touch books{1..N}` to create 1 to N num of files

`mkdir xyz{1..N}` to create multiples dir

`mkdir -p xyz/abc/def` to make dir inside a dir / make a nested directory

`echo "hello world"` -&gt; `Hello World` to print something.

`echo "hello world" > hello.txt` to print/add something in file.

`cat hello.txt` -&gt; `hello world` to see what contents are there in that file.

`cd` mean change Directory

`cd ..` to go previous path

`cd xyz` to go inside that xyz folder

`cd /` to go inside root user

`history` shows what command you have written till now in that terminal.

`uname` It shows the Kernel(Os) name.

`uname -r` it shows the version of Kernel.

`date` it show the date

*To move a file to a folder/ one place to another places* . suppose their are 1 folder and 2 files (`devops and hello.txt, helo.txt`) we want helo.txt should go to the devops folder.

`mv helo.txt devops/` and your file is in that devops folder

`ls -a` This will list all the files and directories in the current directory, including the hidden ones, with their respective permissions, owner, size, and modification time.

Thank you for reading! :)🐧

Saumya Ranjan Mohapatra
