Red Hat Bugzilla – Bug 456661
i used mv command but it delete and cp command and it done nothing!!
Last modified: 2008-07-25 09:39:22 EDT
Description of problem:
Version-Release number of selected component (if applicable):fedora 9 2.6.25-14
take a look at this simple command !!
[root@localhost Tools]# mv -v i686-rh73-gcc32.tgz /Rar
mv: overwrite `/Rar'? y
`i686-rh73-gcc32.tgz' -> `/Rar'
i checked .bashrc every thing is right !! so Y my files are deleted insted of
being moved to the /Rar directory?
[root@localhost Tools]# cp INSTALL /Rar
cp: overwrite `/Rar'? y
and nothing happend!! Y?
Additional info:the same is about the cp command but it do nothing !!
mv and cp are from "coreutils" (rpm -qf `which mv`) and not mythes-sk, or
4Suite. From you messages, I'd say that "/Rar" is not a directory, but a file,
hence the "overwrite" warnings.
As explained in comment #1 everything works as expected. In first command you
moved file i686-rh73-gcc32.tgz into file /Rar . In second command you have
copied file INSTALL to the file /Rar and you replaced that file. If you want to
move file to certain path, be sure that the destination path exists (is created
by mkdir command). I would recommend you to read some basic linux commands howto
prior to prevent another unwanted accidents. Closing NOTABUG.