-
Notifications
You must be signed in to change notification settings - Fork 0
Introduction to Linux
๐ก Linux is an operating system just like Windows or macOS. But the best part is...
โ
It's free! ๐
โ
It's open-source! ๐งฉ
โ
It's powerful! โก
- Windows ๐ฎ โ Like a PlayStation where you need to buy games.
- Linux ๐น๏ธ โ Like an arcade where all the games are free and you can even modify them!
- ๐ Servers: Almost all the websites you visit run on Linux!
- ๐ป Developers: Programmers love Linux because itโs flexible and powerful.
- ๐ Security: Itโs safer from viruses than other operating systems.
๐ Linux was created by a Finnish computer science student named Linus Torvalds in 1991.
He wanted to create a system that was:
โ
Free to use.
โ
Flexible to modify.
โ
Fun for everyone.
๐ Today, Linux powers:
- ๐ฑ Android phones
- ๐ Space rockets
- ๐ Web servers
Android OS is based on Linux! So if youโre using an Android phoneโฆ congratulations, youโre already using Linux! ๐ฑ๐
| โก Feature | ๐ง Linux | ๐ Windows | ๐ macOS |
|---|---|---|---|
| ๐ธ Cost | Free ๐ | Paid ๐ธ | Expensive ๐ฐ |
| ๐ Security | Very Secure ๐ | Moderate ๐ก๏ธ | Secure ๐ |
| ๐ Open-Source | Yes โ | No โ | No โ |
| ๐จ Customization | High ๐จ | Low ๐ข | Medium ๐จ |
| ๐น๏ธ Stability | High ๐ช | Moderate ๐ | High ๐ช |
| ๐ค Community | Strong ๐ฅ | Medium ๐ฅ | Medium ๐ฅ |
๐ก Linux Distros are different versions of Linux with unique features.
Itโs like choosing different ice cream flavors! ๐ฆ๐
- ๐ข Ubuntu โ Easy for beginners! (Most popular)
- ๐ต Fedora โ Fast and up-to-date!
- ๐ฃ Debian โ Very stable and reliable!
- ๐ก CentOS โ Great for servers!
- ๐ Kali Linux โ Used for security testing!
โ Step 1: Download your favorite Linux distro (e.g., Ubuntu) from Ubuntu Official Website.
โ Step 2: Create a bootable USB using Rufus or Etcher.
โ Step 3: Plug the USB into your computer and restart it.
โ Step 4: Select "Install Ubuntu" or any other Linux distro.
โ Step 5: Follow the on-screen instructions:
- Choose your language. ๐
- Set up your username and password. ๐
- Partition your disk (choose โErase Disk and Installโ if you're unsure). ๐พ
โ Step 6: ๐ Congratulations! You have successfully installed Linux!
๐ Linux File System is like a big tree ๐ณ where:
-
/โ Root directory (top of the tree) -
/homeโ Your personal files ๐ -
/etcโ Configuration files ๐ ๏ธ -
/varโ Variable data, logs ๐ -
/usrโ User-installed applications ๐
๐ฉโ๐ป Open the Terminal: Press Ctrl + Alt + T to open the terminal.
| ๐ Command | ๐ฅ What It Does |
|---|---|
ls |
List files ๐ |
cd |
Change directory ๐ช |
pwd |
Show current directory ๐ |
mkdir folder |
Create a folder ๐ |
rm file.txt |
Delete a file ๐๏ธ |
cp file1.txt file2.txt |
Copy a file ๐โก๏ธ๐ |
mv file.txt folder/ |
Move a file ๐ |
๐ก GUI (Graphical User Interface) โ You use a mouse and click on icons. ๐ฑ๏ธ
๐ก CLI (Command Line Interface) โ You type commands in a terminal. ๐
| ๐จ GUI | โจ๏ธ CLI |
|---|---|
| Easy to use ๐ฑ๏ธ | More control ๐ช |
| Slower to perform tasks ๐ข | Faster ๐ |
| Limited options ๐ข | Unlimited options ๐ฅ |
- ๐ธ Free Forever: No licenses or payments.
- ๐ Customizable: Make it look however you want!
- ๐ก๏ธ Secure: Almost no viruses.
- ๐ Community Support: Help is always available.
- ๐ Great for Learning: Understand computers better.
๐ก Letโs Play a Fun Game!
โ
1. Open Terminal (Ctrl + Alt + T)
โ
2. Type the following commands:
# Show a cute cow!
cowsay "I love Linux!"# Show a fun fortune!
fortune | cowsay# Clear the screen
clear