![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing Files | jazz8146 | UNIX for Dummies Questions & Answers | 4 | 01-29-2008 06:50 AM |
| removing old files except configuration files and folders | jamcalicut | Shell Programming and Scripting | 1 | 11-09-2007 12:34 PM |
| Removing files | LiquidChild | UNIX for Advanced & Expert Users | 2 | 06-22-2007 06:39 AM |
| removing files | luft | UNIX for Dummies Questions & Answers | 8 | 03-21-2007 08:53 AM |
| Removing Files | Dastard | SUN Solaris | 1 | 03-13-2007 05:13 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Removing Files
I am trying to remove a file so that I can delete a directory. Unfortuantely the file looks like this --------.--- and the system is not allowing me to remove the file. System message is
rm: Error: Illegal option -- - usage: rm [-fiRr] file... I have tried rm * and rm *.* to no avail. Any Suggestions? |
| Forum Sponsor | ||
|
|
|
||||
|
I had to have a go at this, so I tried using "rm -riv [parentdir]"
It will descend and ask for confirmation before deletion of each file. I had no problems removing the testfile.... $ rm -riv test rm: descend into directory `test'? y removing all entries of directory test rm: remove `test/foo'? n rm: remove `test/foo1'? n rm: remove `test/foo4'? n rm: remove `test/foo2'? n rm: remove `test/--------.---'? y removing test/--------.--- rm: remove `test/foo3'? n rm: remove directory `test' (might be nonempty)? n $ HAHA, I just reread the original post, I though you just wanted to remove the file, and keep the rest of the directory..... still may come in handy for someone.... -gHoTi
__________________
regards, -ghoti Last edited by ghoti; 07-17-2001 at 09:18 AM. |
|
|||
|
Response to Removing Files
Thanks so much for your responses, what a great board this is.
I took the easy way out and took nick30 advice and used 'rm -r filename', which worked a treat. Thanks for all your responses. |
|||
| Google UNIX.COM |