Re: ls or cp: cannot stat error
- From: Carl Reynolds <redhat-list@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Apr 2007 12:23:29 -0400
Eng KC wrote:
When I do a ls * like below
[oracle@db]$ ls -l /data4/v5lmts/vin_group*
I can see the file, but if I do a ls /path/filename like below
[oracle@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.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- Re: ls or cp: cannot stat error
- From: Cameron Simpson
- Re: ls or cp: cannot stat error
- References:
- ls or cp: cannot stat error
- From: Eng KC
- ls or cp: cannot stat error
- Prev by Date: ls or cp: cannot stat error
- Next by Date: Re: ls or cp: cannot stat error
- Previous by thread: ls or cp: cannot stat error
- Next by thread: Re: ls or cp: cannot stat error
- Index(es):