#LTMLinuxTips β Day 15
π Kill a process by name
Instead of looking for PIDs manually, kill by name:
pkill firefox
Or kill all matching processes forcefully:
pkill -9 firefox
Clean, quick, and efficient process management.
#LTMLinuxTips β Day 15
π Kill a process by name
Instead of looking for PIDs manually, kill by name:
pkill firefox
Or kill all matching processes forcefully:
pkill -9 firefox
Clean, quick, and efficient process management.
#LTMLinuxTips β Day 14
π Check battery status from the terminal
For laptops, see battery % and status:
upower -i $(upower -e | grep BAT)
Gives detailed info on charge level, capacity, and health without a GUI.
#LTMLinuxTips β Day 13
π View your systemβs last reboot history
last reboot
A quick way to see when your system was rebooted and confirm uptime patterns.
#LTMLinuxTips β Day 12
π¨ Audit recent sudo use for suspicious activity
Check recent sudo activity: sudo journalctl _COMM=sudo
Look for unusual users or unfamiliar commands that may indicate suspicious elevated sessionsβan essential habit for keeping your Linux system secure.
#LTMLinuxTips β Day 11
π§Ή Clean up package cache and free space
On Debian/Ubuntu:
sudo apt clean
On Fedora:
sudo dnf clean all
On Arch:
sudo pacman -Sc
Keep your system lean by clearing outdated cache files.
#LTMLinuxTips β Day 10
ποΈ Display hardware info (CPU, RAM, etc.)
inxi -F
A powerful, human-readable system overview.
π¦ Install it with:
Debian/Ubuntu: sudo apt install inxi
Fedora: sudo dnf install inxi
Arch: sudo pacman -S inxi
#LTMLinuxTips - Day 9
β±οΈ Show how long your system has been running
uptime -p
π Maybe it's time to let your system catch some Zzzs
#LTMLinuxTips - Day 8
π Test DNS resolution from terminal:
dig example.com
Great for troubleshooting domain issues.
#LTMLinuxTips - Day 7
π Display calendar in terminal:
cal 2025
Quickly view monthly or yearly calendars without leaving the terminal.
#LTMLinuxTips - Day 6
π List active listening ports from terminal:
sudo lsof -i -P -n | grep LISTEN
Great for checking open ports and running services.