Command Line Kya Hai? CMD aur Linux Terminal Basics in Hindi (Day 9)
๐ป Day 9: Command Line Basics (CMD / Terminal)
Agar aap Bug Hunting ya Ethical Hacking me career banana chahte ho, to aapko Command Line seekhna hi padega.
GUI (icons aur mouse) se kaam karna easy hota hai,
lekin security field me real power milti hai:
๐ Command Line se
Chaliye basics samjhte hain.
๐ฅ Command Line Kya Hoti Hai?
Command Line ek text-based interface hoti hai jahan aap:
✔ Commands type karte ho
✔ System se direct interact karte ho
✔ Files aur processes control karte ho
Windows me ise kehte hain:
๐ CMD (Command Prompt)
Linux me ise kehte hain:
๐ Terminal
๐ช Windows CMD Kaise Open Kare?
Simple steps:
1️⃣ Windows key + R press karo
2️⃣ Type karo: cmd
3️⃣ Enter press karo
Black screen open hogi jahan aap commands likh sakte ho.
๐ง Linux Terminal Kaise Open Kare?
Linux me:
Ctrl + Alt + T
yaApplications → Terminal
๐ Basic Commands (Windows CMD)
๐ 1. dir
Folder ke andar ki files show karta hai.
dir
๐ 2. cd
Directory change karne ke liye.
cd Desktop
๐ 3. cd ..
Ek folder piche jane ke liye.
cd ..
๐ 4. cls
Screen clear karta hai.
cls
๐ Basic Commands (Linux Terminal)
๐ 1. ls
Files aur folders show karta hai.
ls
๐ 2. cd
Directory change karne ke liye.
cd Desktop
๐ 3. pwd
Current directory show karta hai.
pwd
๐งน 4. clear
Screen clear karta hai.
clear
๐ Networking Commands (Important for Bug Hunting)
๐ ping
Server reachable hai ya nahi check karta hai.
ping google.com
๐ ipconfig (Windows)
IP address show karta hai.
ipconfig
๐ ifconfig (Linux)
Network details show karta hai.
ifconfig
๐ Bug Hunting Me Command Line Kyun Zaruri Hai?
Security tools mostly command line based hote hain.
Example:
✔ Network scanning
✔ Port checking
✔ DNS lookup
✔ Server testing
Agar aap command line me comfortable ho jaoge, to advanced tools use karna easy ho jayega.
⚠ Important Tip for Beginners
✔ Commands ko samajh kar use karo
✔ Random commands internet se copy mat karo
✔ Practice apne system ya legal lab me karo
Kabhi bhi bina permission kisi system par testing mat karo.
๐ Quick Difference
| Feature | CMD | Linux Terminal |
|---|---|---|
| Platform | Windows | Linux |
| Commands | Slightly different | More powerful |
| Security Use | Limited | Widely used |
๐ Exam Definition
Command Line ek text-based interface hai jahan user commands type karke operating system se direct interact karta hai.
๐ Conclusion
Aaj aapne seekha:
✔ Command Line kya hoti hai
✔ CMD aur Linux Terminal ka difference
✔ Basic commands
✔ Networking commands
Ab aap gradually technical comfort zone me aa rahe ho ๐ฅ
Next Day: Networking Basics (LAN, WAN, Router, Firewall)