Linux administration me command line sabse powerful tool hai. Is guide me 25 important commands ko explanation aur examples ke saath cover kiya gaya hai.
Current working directory dikhata hai.
pwd
Files aur folders list karta hai.
ls -la
Directory change karne ke liye.
cd /var/log
Naya folder create karta hai.
mkdir backup
Files ya folders delete karta hai.
rm -rf testdir
Files copy karne ke liye.
cp file1 file2
File rename ya move karne ke liye.
mv old.txt new.txt
File content dekhne ke liye.
cat /etc/os-release
Text search karne ke liye.
grep root /etc/passwd
Files search karne ke liye.
find / -name "*.log"
Permissions change karta hai.
chmod 755 script.sh
Owner change karta hai.
chown user:user file.txt
Disk space usage check karne ke liye.
df -h
Directory size dekhne ke liye.
du -sh *
RAM usage check karta hai.
free -m
Live process monitoring.
top
Running processes list karta hai.
ps aux
Process terminate karta hai.
kill -9 PID
Services manage karne ke liye.
systemctl status apache2
System logs dekhne ke liye.
journalctl -xe
Open ports aur sockets check karne ke liye.
ss -tulnp
Network connectivity test.
ping google.com
HTTP requests aur APIs test karne ke liye.
curl ifconfig.me
Archive create karne ke liye.
tar -czvf backup.tar.gz folder
Backup aur synchronization ke liye.
rsync -av source/ destination/
Kaunsi command sabse important hai? systemctl, grep, find, df aur journalctl.
SysAdmin ko kitni commands yaad honi chahiye? Daily use wali 20-30 commands kaafi hoti hain.
Ye 25 commands Linux administration ki foundation hain. In commands ko regular use karne se troubleshooting aur server management bahut aasaan ho jata hai.