Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-05-2004, 05:32 PM   #1
Registered: Sep 2003
Location: Belgium, Alosta²
Distribution: Linux Mandrake 9.2
Posts: 66

Rep: Reputation: 15
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
[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???
Old 04-05-2004, 05:59 PM   #2
Registered: Feb 2004
Location: somewhere over the rainbow...
Distribution: Slackware 10.1
Posts: 166

Rep: Reputation: 30
when copying, try using the full pathname for the test directory. like /home/killah/test or something like that.
Old 04-05-2004, 06:13 PM   #3
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problems with the wish command Snerkel Linux - Software 3 08-19-2004 03:06 PM
Problems with startx command jmillet Linux - Software 4 03-19-2004 03:30 AM
command problems with compiling/everything Zaius Linux - Newbie 5 01-09-2004 09:46 PM
Root Command Problems BittaBrotha Debian 11 07-31-2003 11:21 PM
Problems with command in Chapt 5 ?? Grim Reaper Linux From Scratch 6 11-19-2002 07:37 PM > Forums > Linux Forums > Linux - Newbie

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

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