Review your favorite Linux distribution.
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, 05:54 PM   #1
Registered: Mar 2014
Distribution: Linux Puppy and Tahr Puppy
Posts: 629

Rep: Reputation: 8
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, 06:01 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,276

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
relative path? Should it not be /root/mnt/sdb1/.Trash-0/info/* ??
Old 05-09-2014, 06:35 PM   #3
Registered: Mar 2014
Distribution: Linux Puppy and Tahr Puppy
Posts: 629

Original Poster
Rep: Reputation: 8
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 01:13 PM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 10:15 AM
Can't empty the trash. MooseMagnet Linux - Newbie 29 12-21-2007 10:49 AM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 03:52 PM
empty trash Moleman Linux - Software 1 05-16-2003 01:23 PM

All times are GMT -5. The time now is 02:42 AM.

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