š§ New to Linux? Learn the Core Basics in 10 Minutes
Master the Basics in Just 10 Minutes (DevOps Ready)
š§ New to Linux? Learn the Core Basics in 10 Minutes
Master the Basics in Just 10 Minutes (DevOps Ready)
Agar aap DevOps, AWS, Dynatrace ya Cloud computing seekh rahe hain aur Linux bilkul naye hain, toh yeh guide aapke liye perfect haią„¤ Sirf woh commands jo real production mein sabse zyada use hote hainą„¤
1. Linux Navigation Basics
pwd # Present Working Directory
ls # List files
ls -la # Detailed list (hidden files + permissions)
cd /path/to/folder # Change directory
cd ~ # Go to home directory
cd - # Go back to previous directory
2. File & Directory Operations
touch filename.txt # Create empty file
mkdir foldername # Create directory
cp file1 file2 # Copy file
cp -r folder1 folder2 # Copy directory recursively
mv oldname newname # Move or Rename
rm filename.txt # Remove file
rm -rf foldername # Remove directory forcefully (careful!)
cat filename.txt # View file content
less filename.txt # View large file
tail -f logfile.log # Real-time log monitoring
3. User & Permission Management
whoami # Current user
sudo command # Run as superuser
sudo su - # Switch to root user
chmod 755 filename # Change permission
chown user:group file # Change owner
4. Package Management (Ubuntu/Debian)
sudo apt update
sudo apt upgrade
sudo apt install wget curl unzip -y
sudo apt remove package-name
5. System Information & Monitoring
df -h # Disk usage
free -h # Memory usage
top # Live process monitor (q to quit)
htop # Better version of top
uname -a # Kernel & system info
cat /etc/os-release # OS version
6. Network & Connectivity
curl -I https://www.google.com # Check HTTP headers
ping google.com # Check connectivity
ip addr show # Show IP address
ssh user@server-ip # Connect to remote server
scp file user@server:/path/ # Copy file to remote
7. Process Management
ps aux | grep process-name # Find running process
kill -9 PID # Force kill process
pkill process-name # Kill by name
8. Dynatrace OneAgent Installation Commands
wget -O Dynatrace-OneAgent.sh "https://..."
sudo sh Dynatrace-OneAgent.sh
sudo /opt/dynatrace/oneagent/agent.sh stop
sudo /opt/dynatrace/oneagent/agent.sh start
9. Text Editor Basics
nano filename.txt # Easy editor (Ctrl+O save, Ctrl+X exit)
vim filename.txt # Advanced (i = insert, Esc :wq = save & quit)
š„ Pro Tips for DevOps Beginners
- Tab key use karein command complete karne ke liye
historycommand se purane commands dekh sakte hain- Production mein
rm -rfbahut carefully use karein tail -freal-time logs dekhne ke liye best hai
Next Step: In commands ko practice karne ke baad aap AWS EC2 par Dynatrace OneAgent easily install kar sakte hainą„¤
Prepared for DevOps Learning ⢠Sumit