![]() |
|
|
|
|
|||||||
| 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 |
| file moving based on file content | melvyn.cochrane | Shell Programming and Scripting | 12 | 02-15-2008 02:10 AM |
| Moving lines within a txt file | innocentspirit | Shell Programming and Scripting | 5 | 09-27-2007 09:04 PM |
| Moving file from Mainframe to Unix | satyaj_99 | Shell Programming and Scripting | 2 | 12-05-2006 02:46 PM |
| Problem while moving a file | smvel | Shell Programming and Scripting | 5 | 06-10-2005 01:06 AM |
| moving a file? | Holistic | UNIX for Dummies Questions & Answers | 1 | 02-20-2003 03:47 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
moving or removing a file
Hi,
Happy 2002. Now I am actually encountering a problem. Suppose I have a file which I can see has been named as -rw-rwx or .rwxrw-- . when I try to move this file I am unable to do so. Can someone please help me , How can i get rid of the file. Thanks in advance . |
| Forum Sponsor | ||
|
|
|
|||
|
Hi rooh,
Can you provide more information? What account are you using to remove the file? And not all the permissions of the file is given. From part of the permissions shown, the owner and those who are a member of the group shall be able to remove the file. As they have the permission to read and write to the file, assume the permission to be -rw-rwx---. For the other accounts, they are not given the right to remove the file. Also root account shall be able remove the file, regardless of the permission. |
|
|||
|
I think that rooh has a file whose filename is -rw-rwx. Since the filename starts with a dash, the shell will try to treat it as an option instead of a filename. You can override this default behaviour with:
ls -l -- -rw-rwx rm -- -rw-rwx The -- closes out option processing for the command so that the following info will be treated as filenames or whatever. |