LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with the cp command... (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-the-cp-command-166561/)

Killah 04-05-2004 04:32 PM

Problems with the cp command...
 
Hi I have a problem with the cp command look:

(I would to copy stageplan.doc to the test directory):

[root@localhost killah]# ls
1.tar.gz libpng3-1.2.5-7mdk.i586.rpm
AlienMind-1.2.tar.bz2.md5.gz Mail/
alsa-driver-1.0.3/ mp3blaster/
alsa-driver-1.0.3.tar.bz2 mp3blaster-3.2.0.tar.gz
alsa-lib-1.0.3b/ MPlayer/
alsa-lib-1.0.3b.tar.bz2 MPlayer-1.0pre3try2.tar.bz2
alsa-tools-1.0.3.tar.bz2 oxine-snapshot/
alsa-utils-1.0.3/ pieter/
alsa-utils-1.0.3.tar.bz2 pkgconfig/
amsn_received/ pkgconfig-0.15.0.tar.gz
config.log rp9win32codecs.tar.bz2.gz
Desktop/ Screenshots Linux/
Documents/ stageplan.doc
evolution/ test/
extralite.tar.bz2 tmp/
flash6_linux/ vsftpd-1.2.1/
IB300103 ASP.pdf wallpapers/
j2re-1_4_2_04-linux-i586-rpm.bin win32codecs.tar.bz2.gz
kernel-source-2.4.22-10mdk.i586.rpm xine-lib-1-rc3b/
lala/ xine-rc3b.tar.gz
libpng-1.0.10/
[root@localhost killah]# cp stageplan.doc t
test tmp
[root@localhost killah]# cp stageplan.doc test/
cp: invalid option -- -
Try `cp --help' for more information.
[root@localhost killah]# cp --help
cp: invalid option -- -
Try `cp --help' for more information.
[root@localhost killah]#

can anybody help me???
thx

rahmed 04-05-2004 04:59 PM

when copying, try using the full pathname for the test directory. like /home/killah/test or something like that.

shane25119 04-05-2004 05:13 PM

take this format here

cp /home/user/floorplan.sxw /home/test/

the first location is where it is now, the next location is where it is going. if it is to be in some directory yet to be created make sure to create it first with mkdir directoryname


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