#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.