Linux Administration
Linux Administration
Linux system
administration
Optimizing, Securing and working with Docker and Linux Containers
Monitoring system resources
• Why Monitor
1. Understand capacity usage
2.Identify and terminate rogue processes
/proc
Meminfo
Cpuinfo
Top
Free
Free –h
Df
Df –t
Df –ht
Iftop
Managing system processes
• Ps
• Ps aux
• Ps aux | grep sshd
• Journalctl –-since “10 minutes ago”
• Cd /var/log
Managing system processes
• Dmesg
• Snap list
• yes > /dev/null &
• Kill
• Kill all
• systemctl status apache2
• Nice -19 yes > /dev/null &
• Renice 15 –p 1824
Working With Users and Groups
• Service Hardening
• Port control
• Firewall rules
• Host Administration
1.Privileges
2.Kernel Access
Container Administration
1.Application design
FROM ubuntu:18.04