| Author |
Message |
ajayleo@gmail.com *nix forums beginner
Joined: 16 Feb 2005
Posts: 3
|
Posted: Wed Feb 16, 2005 11:01 pm Post subject:
Re: Deleting a file on RedHat 9
|
|
|
|
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
|
Posted: Wed Feb 16, 2005 10:14 pm Post subject:
Re: Deleting a file on RedHat 9
|
|
|
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*" )
--
<< 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
|
Posted: Wed Feb 16, 2005 10:13 pm Post subject:
Re: Deleting a file on RedHat 9
|
|
|
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
|
Posted: Wed Feb 16, 2005 10:01 pm Post subject:
Re: Deleting a file on RedHat 9
|
|
|
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
|
Posted: Wed Feb 16, 2005 9:54 pm Post subject:
Deleting a file on RedHat 9
|
|
|
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 |
|
 |
|