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

  1. list all virtualenvs:
    locate -b '\activate' | grep "/home" | sed -e 's/bin.*//g' | uniq
    
  2. …remove the unused ones manually. I tried to add | xargs rm -ir for interactively removing them one by one, but that doesn’t work. I understand the reason, but not the alternative solution(s)