Przejdลบ do treล›ci

๐Ÿ–ฅ๏ธ System Administration

Core Linux system administration concepts and procedures for managing production servers.


๐Ÿงฉ System Fundamentals

  • Linux filesystem hierarchy
  • systemd services
  • SSH configuration
  • User and group management
  • Package updates and security patches

๐Ÿ”ง Essential Commands

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# System status
uptime
top
htop

# Service management
systemctl status <service>
systemctl restart <service>
systemctl enable <service>

# Disk usage
df -h
du -sh *

# Network status
ss -tulpn
ip a

๐Ÿ” SSH Configuration

  • Use keyโ€‘based authentication
  • Disable password login
  • Change default SSH port if needed
  • Use ~/.ssh/config for host aliases

Example:

1
2
3
4
Host prod
  HostName 192.168.1.10
  User robert
  IdentityFile ~/.ssh/id_rsa

๐Ÿงฑ Firewall (UFW)

1
2
3
4
5
ufw allow 22
ufw allow 80
ufw allow 443
ufw enable
ufw status

๐Ÿ› ๏ธ System Maintenance

  • Apply updates regularly
  • Monitor disk usage
  • Rotate logs
  • Clean unused Docker images/volumes
  • Validate backups