Re: ls or cp: cannot stat error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux