System Level Commands Guide
If I had to relearn Linux for observability…
I would master basic system-level commands —
because observability is not just about metrics —
it’s about knowing the system you are observing.
🛠️ System-Level Commands Explained
1️⃣ uname
uname -a
✅ Check if the server is Linux, what version, what hardware.
2️⃣ uptime
uptime
✅ Great to know if the server recently rebooted or is under load.
3️⃣ date
date
✅ Critical for log correlation and time-sensitive debugging.
4️⃣ who and whoami
who
whoami
✅ Good for checking active sessions and permissions.
5️⃣ which
which nginx
✅ Useful for verifying which version or path of a tool is being used.
6️⃣ id
id
✅ Important for permission and security audits.
7️⃣ sudo
sudo command
✅ Essential for privileged operations — but needs careful monitoring.
Recommended by LinkedIn
8️⃣ shutdown
sudo shutdown now
✅ Always prefer controlled shutdowns over power cuts.
9️⃣ reboot
sudo reboot
✅ Useful for applying kernel updates or recovering after major config changes.
10️⃣ apt
sudo apt update
sudo apt install nginx
✅ Used to install, update, upgrade, or remove software.
11️⃣ yum
sudo yum install nginx
✅ Used similarly for installing/removing software.
12️⃣ dnf
sudo dnf install nginx
✅ Faster and smarter dependency handling.
13️⃣ pacman
sudo pacman -S nginx
✅ Very lightweight and efficient for bleeding-edge setups.
14️⃣ portage
emerge nginx
✅ Powerful but complex — compiles packages from source.
🧠 Simple Analogy
Think of your Linux server like a restaurant kitchen:
🗺️ Where Are We in the Linux Journey?
System Basics → User Sessions → Package Management → Admin Privileges → Full Observability
✅ Understanding these commands gives you confidence when investigating or fixing a server.