error handle collection

less than 1 minute read

Published:

  • apt command error
    ps -A | grep apt
    kill -9
    rm -f /var/lib/dpkg/lock
    rm -f /var/cache/apt/archives/lock
    rm -f /var/lib/apt/lists/lock
    
  • count file in every directory
    du -a | cut -d/ -f2 | sort | uniq -c | sort -nr