ls or cp: cannot stat error
Carl Reynolds
redhat-list at hyperbole-software.com
Mon Apr 23 16:23:29 UTC 2007
Eng KC wrote:
> When I do a ls * like below
>
> [oracle at db]$ ls -l /data4/v5lmts/vin_group*
>
> I can see the file, but if I do a ls /path/filename like below
>
> [oracle at db]$ ls /data4/v5lmts/vin_group3_add1.ora
> ls: /data4/v5lmts/vin_group3_add1.ora: No such file or directory
>
It looks as if you have an invisible character (like ' ') in the file
name. try something like
$ ls /data4/v5lmts/vin_group3_add1.* | sed -e 's/^/</' -e 's/$/>/'
to see if the file has an extra space at the end.
Carl.
More information about the redhat-list
mailing list