Re: ls or cp: cannot stat error



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