System Management Commands
sudo — Execute as Administrator
Run commands with elevated privileges when you need system-level access.
sudo yum update # Update system packages
sudo systemctl restart nginx # Restart a service
sudo passwd username # Change user passwordsystemctl — Service Management
Control system services and daemons efficiently.
systemctl start apache2 # Start service
systemctl stop apache2 # Stop service
systemctl restart apache2 # Restart service
systemctl status apache2 # Check service status
systemctl enable apache2 # Enable on bootyum — Package Manager (Amazon Linux 2)
Install, update, and manage software packages on your system.
yum update # Update all packages
yum install nginx # Install package
yum remove package-name # Remove package
yum search keyword # Search for package
Comments
Post a Comment