The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file moving based on file content melvyn.cochrane Shell Programming and Scripting 12 02-15-2008 03: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 03: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 04:47 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-31-2001
Registered User
 

Join Date: Jul 2001
Posts: 62
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
  #2  
Old 12-31-2001
Registered User
 

Join Date: Dec 2001
Posts: 4
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.
  #3  
Old 01-01-2002
Jimbo
Guest
 

Posts: n/a
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.
  #4  
Old 01-01-2002
Registered User
 

Join Date: Jul 2001
Posts: 62
You are right Jimbo . That's what I was really looking For.
Thanx alot. You knew exactly what I was looking for.
Have a nice time.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0