Emptying Trash from Shell


Ever want to empty your Trash folder from command prompt. Then you can run following commands to do the trick

rm -rf /home/username/.local/share/Trash/info/* 
rm -rf /home/username/.local/share/Trash/files/*

Above you just need to provide username of whom you need to empty Trash file. I have tested it on Fedora and on Ubuntu with gnome.

Subscribe / Share

Article by Vidyadhar

My name is Vidyadhar Sarmalkar & I work as a consultant and have done RHCE & CCNA.
Vidyadhar tagged this post with: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Read 229 articles by

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Notify me of followup comments via e-mail. You can also subscribe without commenting.

rss twitter facbook

Categories

Archives

Buffer