LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices



Reply
 
Search this Thread
Old 05-09-2014, 05:54 PM   #1
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Rep: Reputation: 1
Empty trash script


2nd to last line isn't working.

I can not figure out why.

Code:
# Linux Puppy 5.6.0
# Empty_Trash.sh 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
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
relative path? Should it not be /root/mnt/sdb1/.Trash-0/info/* ??
 
Old 05-09-2014, 06:35 PM   #3
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Original Poster
Rep: Reputation: 1
This worked.

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


Reply


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 09:17 PM.

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