#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.
#LTMLinuxTips - Day 5
πΊοΈ Check your public IP From terminal (with more detail):
curl -s https://ipinfo.io
Useful for remote access or VPN checks.
#LTMLinuxTips - Day 4
Need a quick history recall? Use: history | tail
Start typingβpress it again to cycle!
π§ #LTMLinuxTips - Day 3
Forget to use sudo? Don't retype everything: sudo !!
It reruns your last command as root. Saved me more times than I can count!
π§ #LTMLinuxTips - Day 2
Want to quickly find out what distro you're using?
Run: cat /etc/os-release
This gives you detailed info like distro name, version, and more.