Flashcards - Sasnu

Linux Fundamentals

File Search

How do you search your entire server for a specific file named apache2.conf?

sudo find / -name "apache2.conf"

System Upgrades

How do you update the package list and safely upgrade all installed software on your Ubuntu server?

sudo apt update && sudo apt upgrade

Installation

How do you install a new software package, such as the "tree" utility?

sudo apt install tree

Service Status

How do you check if your Apache web server is actively running or crashed?

sudo systemctl status apache2

Real-Time Logs

How do you watch the Apache error log update continuously in real-time?

sudo tail -f /var/log/apache2/error.log

Other Resources

Additional files.