Re: cf & mv not working
- From: Henrik Herranen <leopold@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Mar 2009 15:21:53 +0200
"fredbear2412" <me@xxxxxxxxxxxxx> writes:
These commands stopped working a while back. didn't really bother me as I
just used text editor to copy stuff from one file to another.
Now I need cp or mv to work for a binary(?) file.
Here is what I get when I try & copy a file
/etc/mail # cp sendmail.cf sendmail.cf.org
cp: illegal option -- 1
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
or if I try to rename
/etc/mail # mv sendmail.cf sendmail.cf.org
mv: illegal option -- 1
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
The solution: don't alias cp or mv to "cp -1" and "mv -1", respectively.
Have a look at your .cshrc or equivalent file and remove the
following commands that you have incorrectly added:
alias cp cp -1
alias mv mv -1
For a quick fix, try this in your shell:
unalias cp
unalias mv
Kind regards,
- Henrik
--
Good signatures never die, they just fade away
.
- References:
- cf & mv not working
- From: fredbear2412
- cf & mv not working
- Prev by Date: cf & mv not working
- Next by Date: Problem with corrupted file system
- Previous by thread: cf & mv not working
- Next by thread: Problem with corrupted file system
- Index(es):
Relevant Pages
|