Empty your trash by command line

Here by a single command you can use from the terminal to empty trash under Ubuntu.

This command can be used instead of right clicking the Trash icon and selecting Empty Trash from the context menu.

Open the terminal and run this command to empty all files and folders stored in Trash:

sudo rm -rf ~/.local/share/Trash/*

[Note] Be careful when using the “rm” command because any misuse may result in deleting some other sensitive or system folders or files.


About pacesettergraam

A good and realistic person

Posted on September 18, 2012, in linux, ubuntu and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: