# 🔥 Commands of Linux 🔥

So today I studied the commands of Linux, how it works, and little @[Shubham Londhe](@TrainWithShubham) [taught it in](https://www.linkedin.com/in/ACoAABhZ4kMBt55axHJpEnVRp0UOUl-_JwwmPwk) such a way that even a child can understand it, that too very deeply.  
In somewhere I’m wrong then please correct me 😇  
  
  
  
▶️ So Linux is either a file or a directory, and there (/) is known as the root directory where Linux started.  
  
▶️ Gitbash: it means it’s a shell which allows you to connect to a kernel.  
  
▶️ mkdir :- mkdir user ▷ It creates a user name directory.  
  
▶️ Touch :- Touch my-file.txt ▷ It creates a file named my-file.txt  
  
▶️ mnt :- for mounting storage a devices  
  
▶️ home :- home is the directory where user folders (home directories) are stored.  
  
▶️ sbin :- there is a system level binary files are kept.  
  
▶️ bin :- binary , it means either zero or one  
  
▶️ root :- root is a basically super user which handles the hole system.  
  
▶️ media :- files , folder , images are saved in media  
  
▶️ etc :- etc generally holds all the configuration files.  
  
▶️ Boot : Boot loads all the necessary code that helps the system start and run properly.  
  
▶️ opt :- opt is a folder where manually installed third-party software is stored  
  
▶️ man :-  Stands for manual used to read and help with the documentation of common commands.  
  
⭐️ Let if we want to go to direct home directories then we use cd (~) it directly redirect into home.  
  
▶️ rm :- rm is used to removed file.  
  
▶️ rmdir :- rmdir is remove a empty directory  
  
▶️ rm -r :- is used to remove directly , even if there is a file in it.  
  
▶️ rm -v :- here ( v )is verbose, used to show the name of each file as it deletes it.  
  
▶️ rm -rf :- it deletes forcefully directory & file. (⭐️but always avoid it ⭐️😀)  
  
▶️ vim :- vim is a text editor , and in text editor we want to go for insert mode then press (i) & after typing press \[ESC\] to back and press ( :wq) to save file.  
  
▶️ apt :- For upgrading packages or installing updates ( apt-get update), it won’t run without admin permission, so we always use \[ sudo apt-get update\].  
  
  
Here sudo is a super user and also a group that has the permission of a root user \[OR\] it allows a regular user to run commands with admin / root privileges.  
  
Ex- sudo apt-get update, sudo apt-get upgrade \[ here sudo apt-get update will download packages , and sudo apt-get upgrade will upgrade packages\] .
