🌐 Detecting your location…
📢 Advertisement — Configure AdSense in Appearance → Customize → AdSense Settings

Linux für Entwickler 2026: Grundlegende Befehle, SSH und Systemd

⏱️4 min read  ·  752 words

Linux ist für Entwickler im Jahr 2026 unverzichtbar – von WSL2 unter Windows über die Unix-Basis von macOS bis hin zu Cloud-Servern mit Ubuntu und Alpine. Das Verständnis von Linux macht Sie zu einem besseren Entwickler, ermöglicht serverseitiges Arbeiten und ist für die meisten DevOps- und Backend-Rollen erforderlich. In diesem Leitfaden erfahren Sie, was jeder Entwickler über Linux wissen muss.

Warum Linux für Entwickler wichtig ist

  • Auf den Servern läuft Linux: 96 % der Top-1-Million-Webserver laufen unter Linux
  • Docker-Container: Fast alle Container-Images basieren auf Linux
  • Cloud-Computing: AWS EC2, GCP, Azure standardmäßig auf Linux-Instanzen
  • Entwicklungstools: gcc, git, bash, curl, alle nativ unter Linux
  • WSL2: Führen Sie Linux unter Windows ohne Dual-Boot aus

Leitfaden für Linux-Distributionen

Distribution Anwendungsfall Paketmanager
Ubuntu 24.04 LTS Server, Anfänger, WSL2 apt
Debian Stabile Server, kein Schnickschnack apt
Alpine Linux Docker-Container (5 MB!) apk
Arch Linux Anpassung, Lernen Pacman
CentOS Stream/RHEL Unternehmen, Compliance dnf/lecker

Grundlegende Linux-Kenntnisse für Entwickler

Dateisystemstruktur

# Key directories every developer should know
/           # root
/home/user/ # user home directory (~)
/etc/       # system configuration files
/var/log/   # log files
/var/lib/   # application data (databases, docker)
/opt/       # optional/third-party software
/usr/local/ # user-installed software
/tmp/       # temporary files (cleared on reboot)
/proc/      # virtual filesystem — kernel and process info
/dev/       # device files

# Navigation
cd ~                  # go home
cd -                  # go back to previous directory
ls -la                # list all with permissions
pwd                   # print working directory
find . -name "*.log"  # find files
locate filename       # fast find (uses index)

Prozessmanagement

# View processes
ps aux                    # all processes
ps aux | grep nginx       # find nginx
top                       # interactive, real-time
htop                      # better interactive
pgrep -f "python"         # find by name

# Kill processes
kill 1234                 # graceful (SIGTERM)
kill -9 1234              # force kill (SIGKILL)
killall nginx             # kill by name
pkill -f "python app.py"  # kill by pattern

# Background jobs
./long_task.sh &          # run in background
nohup ./task.sh &         # persist after logout
jobs                      # list background jobs
fg %1                     # bring job 1 to foreground
bg %1                     # send to background

# System resources
free -h                   # memory usage
df -h                     # disk space
du -sh *                  # size of items in current dir
iostat -x 1               # I/O statistics

Networking für Entwickler

# Check connectivity
ping google.com
traceroute google.com
dig google.com            # DNS lookup
nslookup google.com

# Ports and services
ss -tulnp                 # list open ports + process
netstat -tulnp            # same (older)
lsof -i :8000             # what's using port 8000
curl -I https://example.com  # HTTP headers only

# SSH
ssh user@server.com
ssh -i ~/.ssh/key.pem ubuntu@ec2-host.compute.amazonaws.com
scp file.txt user@server:/path/to/dest/
rsync -avz ./src/ user@server:/app/src/

# SSH config (~/.ssh/config)
Host myserver
    HostName 203.0.113.1
    User ubuntu
    IdentityFile ~/.ssh/mykey.pem
# Now: ssh myserver

systemd – Dienstverwaltung

# Managing services
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo systemctl reload nginx  # reload config without restart
sudo systemctl enable nginx  # start on boot
sudo systemctl disable nginx
sudo systemctl status nginx

# View logs
journalctl -u nginx          # nginx logs
journalctl -u nginx -f       # follow nginx logs
journalctl -n 100            # last 100 system log entries
journalctl --since "1 hour ago"

# Create your own service
# /etc/systemd/system/myapp.service
[Unit]
Description=My App
After=network.target

[Service]
Type=simple
User=deploy
WorkingDirectory=/app
ExecStart=/usr/bin/python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Cron-Jobs – Geplante Aufgaben

# Edit crontab
crontab -e
crontab -l  # list current crons

# Cron syntax:
# MIN HOUR DAY MONTH WEEKDAY command
# 0   2    *   *     *       /usr/bin/backup.sh

# Examples:
0 * * * *      /app/hourly_task.sh     # every hour
0 2 * * *      /app/daily_backup.sh    # 2am daily
*/15 * * * *   /app/health_check.sh   # every 15 min
0 9 * * 1-5    /app/weekday_report.sh  # 9am Mon-Fri
0 0 1 * *      /app/monthly_report.sh  # 1st of month

# Logging cron output
0 2 * * * /app/backup.sh >> /var/log/backup.log 2>&1

Linux für Docker und Cloud

# Docker on Linux
sudo apt install docker.io
sudo usermod -aG docker $USER  # run docker without sudo
newgrp docker

# Docker-compose
sudo apt install docker-compose-plugin
docker compose up -d

# Cloud instances: most common tasks
# Connect
ssh -i key.pem ubuntu@your-server-ip

# Update and install
sudo apt update && sudo apt upgrade -y
sudo apt install -y nginx python3-pip git

# Firewall
sudo ufw enable
sudo ufw allow ssh
sudo ufw allow 80
sudo ufw allow 443
sudo ufw status

Linux für Entwickler im Jahr 2026: Beherrschen Sie die Befehlszeile (unser Linux-Befehlsleitfaden deckt alle Befehle ab), verstehen Sie Prozessmanagement, Netzwerktools und Systemd-Dienste. Unter Windows bietet Ihnen WSL2 Ubuntu direkt im Windows-Terminal – sehr zu empfehlen. Das Terminal ist der Ort, an dem die wahre Kraft von Linux zu finden ist, und die Zeit, die Sie hier investieren, zahlt sich im Laufe Ihrer Karriere aus.

✍️ Leave a Comment

Your email address will not be published. Required fields are marked *

🌐 Read in:🇬🇧 English🇩🇪 Deutsch🇧🇷 Português🇸🇦 العربية🇮🇳 हिन्दी🇧🇩 বাংলা