Calcolare la dimensione e Svuotare Cestino

()

CALCOLARE LA DIMENSIONE E SVUOTARE IL CESTINO DA TERMINALE IN UBUNTU – LINUX

Du è il comando che può essere efficacemente utilizzato via terminale per determinare lo spazio occupato dal cestino in ubuntu/linux.

Per visualizzare l’occupazione di spazio di Trash :

du -hs ~/.local/share/Trash/* | sort -h

Per visualizzare dimensione i files che possono essere cancellati in sicurezza

du -hs ~/.local/share/Trash/files/* | sort -h

Se si gradisce l’ordine inverso si può utilizza l’opzione -r quindi sort diventa sort -hr

Per svuotare il cestino in sicurezza.
Quando si usa rm ( remove ) è opportuno prestare la dovuta attenzione.

rm -rf ~/.local/share/Trash/files/*

/ 5
Grazie per aver votato!

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?