how to emptry trash on command line from ubuntu 10.04

hi,

how could i empty trash from the command line on ubuntu 10.04 ? thanks.
zizi21Asked:
Who is Participating?
 
Gerwin Jansen, EE MVETopic Advisor Commented:
These 2 commands will empty 'your' trash:
rm -rf ~/.local/share/Trash/files/*
rm -rf ~/.local/share/Trash/info/*

Open in new window

0
 
zizi21Author Commented:
Thanks a million
0
 
zizi21Author Commented:
But i cant find the trash on the local computer ?
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
You mean you can't find the trash folder? You can display it like this:

ls -al ~/.local/share

Open in new window


If I have something in trash, the trash icon (right lower corner of desktop) is 'filled'. When deleting the contents through the script, the trash icon shows 'emptied'.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.