Frequently forgotten shell commands
Scheduling a shutdown
At a specific time
shutdown hh:mm
After n minutes
shutdown +n
Spring cleaning
Cleaning the Yay package cache
yay -Scc
Cleaning up the pip package cache
pip cache purge
Removing unused Python virtualenvs
- list all virtualenvs:
locate -b '\activate' | grep "/home" | sed -e 's/bin.*//g' | uniq - …remove the unused ones manually. I tried to add
| xargs rm -irfor interactively removing them one by one, but that doesn’t work. I understand the reason, but not the alternative solution(s)