LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2006, 01:29 AM   #1
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
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
 
Old 01-24-2006, 02:21 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
Invalid Signature ??? ddrfreak Mandriva 8 12-12-2004 11:04 AM
squirremail ...it says invalid user or invalid password. rnj Fedora 9 10-25-2004 09:56 PM
LinNeighborhood --"nmblookup: invalid option -- o" wlfdgcrkz Linux - Software 0 04-27-2003 01:35 PM
in.telnetd: invalid option -- L implant23 Linux - Networking 1 12-01-2002 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration