?
Solved

how to emptry trash on command line from ubuntu 10.04

Posted on 2011-09-03
4
Medium Priority
?
651 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 2000 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 38

Expert Comment

by:Gerwin Jansen, EE MVE
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

Give Your Engineering Team a Productivity Boost

Learn why container technology is so powerful and how it can provide your team with productivity gains and other benefits.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

765 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