LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-05-2004, 04:32 PM   #1
Killah
Member
 
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
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
 
Old 04-05-2004, 04:59 PM   #2
rahmed
Member
 
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, 05:13 PM   #3
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

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
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 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