Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Puppy This forum is for the discussion of Puppy Linux.


  Search this Thread
Old 05-09-2014, 04:54 PM   #1
Senior Member
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,206

Rep: Reputation: 159Reputation: 159
Empty trash script

2nd to last line isn't working.

I can not figure out why.

# Linux Puppy 5.6.0
# Empty trash folders
sleep 2
rm -rf ~/.Trash/*
rm -rf ~/.local/share/Trash/files/*
rm -rf ~/.local/share/Trash/info/*
sleep 2
rm -rf root/mnt/sdb1/.Trash-0/files/*
rm -rf root/mnt/sdb1/.Trash-0/info/*
ls -a
Old 05-09-2014, 05:01 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,578

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
relative path? Should it not be /root/mnt/sdb1/.Trash-0/info/* ??
Old 05-09-2014, 05:35 PM   #3
Senior Member
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,206

Original Poster
Rep: Reputation: 159Reputation: 159
This worked.

rm -rf /mnt/sdb1/.Trash-0/*


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to empty Trash for all users loadedmind Programming 5 11-13-2013 12:13 PM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 09:15 AM
Can't empty the trash. MooseMagnet Linux - Newbie 29 12-21-2007 09:49 AM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 02:52 PM
empty trash Moleman Linux - Software 1 05-16-2003 12:23 PM

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration