Thursday, December 30, 2010

Shell script for clearing the Trash in Ubuntu linux

Hi,

I was facing a problem while clearing the Trash in Ubuntu Linux. I wasn’t able to delete certaion folder and i got the message stating “Access Denied”. So i was wondering that there should be some way to do it from the command prompt using sudo and some command. I did a google for the requirement and found the following shell snippet:

rm -rf ~/.local/share/Trash/
 
Regards,
Ujjwal Soni 

No comments: