Empty the trash using terminal ubuntu

To empty the trash using the terminal in ubuntu, open the terminal and write:

 rm -rf ~/.local/share/Trash/*
The rm command removes (deletes) files or directories, and -rf mean:

-f, --force     Ignore nonexistant files, and never prompt before removing.
-r, -R, --recursive     Remove directories and their contents recursively.

Be careful how you use the rm command - the files aren't sent to a trash can where you can undelete them, so it's not easy to undo.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel