Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-16-2003, 09:39 PM
|
#1
|
|
Member
Registered: Oct 2003
Location: sydney
Posts: 70
Rep:
|
delete from trash
hi all,
can anyone tell me how to delete the files i moved to the trash recently.
i understand that i could just click on the 'empty trash' to get rid of some, but some files seem to need permissions in order to get rid of, i seem to have problem there.
i have tried to log in as root, but then there is no files in the trash, how come?
is there any command i could use to clear up the trash?
thanks
|
|
|
|
10-16-2003, 09:43 PM
|
#2
|
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
because roots trash is different from a regular users trash  , anyways, you can always fire up a terminal and try removing the files manually....i think the location is /home/USER/Desktop/Trash, but i maybe wrong, but in any case i know its in the home folder, and i am almost positive its a subfolder in Desktop....i am not on my box right now, so this is a pure guess, but i think rather accurate ;-)
|
|
|
|
10-16-2003, 09:56 PM
|
#3
|
|
Member
Registered: Oct 2003
Location: sydney
Posts: 70
Original Poster
Rep:
|
i tried with the location you give me and it didnt seem right.
|
|
|
|
10-16-2003, 11:27 PM
|
#4
|
|
Member
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348
Rep:
|
i dunno where redhat puts it but you can go in console and use the
"find -name <filename>" to find out
|
|
|
|
10-17-2003, 12:06 AM
|
#5
|
|
Member
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198
Rep:
|
at the shell promt type
for a file rm filename
for a empty directory rmdir dirname
for a occupied directory rm -r dirname
|
|
|
|
11-05-2003, 10:26 AM
|
#6
|
|
Member
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228
Rep:
|
Once I move the file "del.txt" to the Trash, if I use the Find command the result is "No such file or directory".
Does anyone know the answer to the original question? I'm interested to know the answer too....
How do you delete files from the trash using the terminal window?
|
|
|
|
11-05-2003, 10:32 AM
|
#7
|
|
Member
Registered: Aug 2003
Distribution: Red Hat RHEL WS 3, RHEL WS 4
Posts: 228
Rep:
|
I got it. Messing around with an older version of a different distro of Linux for a bit..
I went into the home directory of user,
cd .Trash
then..
su root - Change to root user to overcome permission issues...then
rm -r * --force
And that emptied my trash.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:20 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|