Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to find size of Trash directory from commandline

📅 2013-Sep-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ du, trash, trash-cli ⬩ 📚 Archive

The trash-cli set of tools are a great way to view, add and manage files in the Trash directory. One of the few features missing is a way to view the size of the Trash directory.

This can be done easily using the du command on the Trash directory:

$ du -hs ~/.local/share/Trash

If you use this frequently, you may want to add an alias to your shell:

alias trash-size="du --human-readable --summarize ~/.local/share/Trash"

Tried with: Ubuntu 12.04 LTS


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧