LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cp indicates invalid option (https://www.linuxquestions.org/questions/linux-software-2/cp-indicates-invalid-option-407248/)

Murdock1979 01-24-2006 01:29 AM

cp indicates invalid option
 
Hello!

I am trying to copy a few files that have foreign characters, and the cp tells me

invalid option - פ
See --help for details

It's like cp is viewing the file name as an option. It is using a vfat file system.

What is going on and how can I solved it?

Thanks,
Murdock

timmeke 01-24-2006 02:21 AM

First of all, FAT file systems, used in Windows systems very often, probably don't support very strange characters in filenames.

Secondly, "cp" probably misreads the filename simply because it starts with a "-" or something (this makes cp mistake it for an option that always starts with a -).
Some commands support adding the "--" option to tell where the options stop and the filenames start.
However, "cp" may not support this (check it's man page).
If it doesn't support the "--" option, you should try:
-adding a \ (backslash) before the first '-' or even any '-' in the filename
-using single quotes.
-looking at your shell's and cp's man pages.


All times are GMT -5. The time now is 03:09 AM.