Solved

how to emptry trash on command line from ubuntu 10.04

Posted on 2011-09-03
4
621 Views
Last Modified: 2012-05-12
hi,

how could i empty trash from the command line on ubuntu 10.04 ? thanks.
0
Comment
Question by:zizi21
  • 2
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
ID: 36477699
These 2 commands will empty 'your' trash:
rm -rf ~/.local/share/Trash/files/*
rm -rf ~/.local/share/Trash/info/*

Open in new window

0
 

Author Comment

by:zizi21
ID: 36479153
Thanks a million
0
 

Author Comment

by:zizi21
ID: 36479198
But i cant find the trash on the local computer ?
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 36479787
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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now