niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Setup
Deleting a file on RedHat 9
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
ajayleo@gmail.com
*nix forums beginner


Joined: 16 Feb 2005
Posts: 3

PostPosted: Wed Feb 16, 2005 11:01 pm    Post subject: Re: Deleting a file on RedHat 9 Reply with quote

Right.....there were a few spaces at the end of the filename.
Back to top
mjt
*nix forums Guru


Joined: 09 Mar 2005
Posts: 961

PostPosted: Wed Feb 16, 2005 10:14 pm    Post subject: Re: Deleting a file on RedHat 9 Reply with quote

ajayleo@gmail.com wrote:

Quote:
Wonderful...rm ALL* worked....can i know the reason why rm ALLFILE
didn't work...

Thanks for the help.

.... there might have been a space in the filename
or some other weird character. i hope you didnt
have any other files with the base "ALL*" Smile)
--
<< http://michaeljtobler.homelinux.com/ >>
Tact, n.: The unsaid part of what you're thinking.
Back to top
ajayleo@gmail.com
*nix forums beginner


Joined: 16 Feb 2005
Posts: 3

PostPosted: Wed Feb 16, 2005 10:13 pm    Post subject: Re: Deleting a file on RedHat 9 Reply with quote

Wonderful...rm ALL* worked....can i know the reason why rm ALLFILE
didn't work...

Thanks for the help.
Back to top
mjt
*nix forums Guru


Joined: 09 Mar 2005
Posts: 961

PostPosted: Wed Feb 16, 2005 10:01 pm    Post subject: Re: Deleting a file on RedHat 9 Reply with quote

ajayleo@gmail.com wrote:

Quote:
[root@localhost test]# ls -l -a
total 24604
drwxrwxr-x    2 ajay     ajay         4096 Feb 16 17:23 .
drwxrwxr-x    4 ajay     ajay         4096 Feb  7 13:52 ..
-rw-rw-r--    1 ajay     ajay     21875899 Feb 16 17:11 ALLFILE

[root@localhost test]# rm ALLFILE
rm: cannot lstat `ALLFILE': No such file or directory

what about: rm ALL*
if not, what does the following show:
[shell] lsattr ALLFILE

--
<< http://michaeljtobler.homelinux.com/ >>
Census Taker to Housewife: Did you ever have the
measles, and, if so, how many?
Back to top
ajayleo@gmail.com
*nix forums beginner


Joined: 16 Feb 2005
Posts: 3

PostPosted: Wed Feb 16, 2005 9:54 pm    Post subject: Deleting a file on RedHat 9 Reply with quote

Hello

Iam unable to delete a file.

When i do 'ls -l -a ' the listing shows the file but when i
do a rm filename, it says cannot lstat: No such file or directory.

See below...

[root@localhost test]# ls -l -a
total 24604
drwxrwxr-x 2 ajay ajay 4096 Feb 16 17:23 .
drwxrwxr-x 4 ajay ajay 4096 Feb 7 13:52 ..
-rw-rw-r-- 1 ajay ajay 21875899 Feb 16 17:11 ALLFILE

[root@localhost test]# rm ALLFILE
rm: cannot lstat `ALLFILE': No such file or directory

Any ideas......

Thanks
ajay
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 7:24 pm | All times are GMT
navigation Forum index » *nix » Linux » Setup
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts Regarding thesaurus iso file Srikanth modules 0 Fri Jul 21, 2006 10:42 am
No new posts how can i get a file descriptor not used? mars system 0 Fri Jul 21, 2006 7:41 am
No new posts small GTK "Open file" dialog David Siroky Debian 0 Fri Jul 21, 2006 7:30 am
No new posts Trouble Declaring 3D Array in Header File free2klim C++ 1 Fri Jul 21, 2006 4:07 am

Bankruptcy | Remortgages | Online Advertising | Debt Consolidation | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2521s ][ Queries: 20 (0.1728s) ][ GZIP on - Debug on ]