Empty The Trash With Terminal Commands In Ubuntu

When we delete a file in ubuntu with right click and select move to trash, then the file will be moved to temporary shelters called trash.here we shall consider deleting/emptying the trash by using the terminal, want to know how? follow these steps:




Go to Terminal and type :


$ sudo su
$ rm -dr /home/user_name/.local/share/Trash/files/

Note :

"user_name" is for example a user on my ubuntu machine

Happy Testing...!!

No comments:

Post a Comment

Please Comment...!!