LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-27-2006, 10:03 AM   #1
ol1v3rw
LQ Newbie
 
Registered: Jun 2006
Distribution: freebsd 6.1, suse 10.1
Posts: 15

Rep: Reputation: 0
command line paste


How do you paste in the command line? I don't mean using hotkeys like ctrl- or shift-. I mean like
$ cp /file

Also is the there a seperate command from pasting file directorys after copying with $ cp -r?
 
Old 06-27-2006, 10:11 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
i dont understand, either you want to copy a file somewhere else, or paste text into the console ( i dont think you do?)

Code:
man cp
basically
Code:
cp <file> <target_file>
there is no 'paste' command, copy handles the pasting type part. same as with cp -r for directories.
 
Old 06-27-2006, 12:56 PM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Don't know if this what you mean.

Copy by dragging mouse pointer accross whatever.

Paste by right clicking outside X and middle clicking inside X.

Hope helps.
 
Old 06-27-2006, 02:26 PM   #4
ol1v3rw
LQ Newbie
 
Registered: Jun 2006
Distribution: freebsd 6.1, suse 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Soz, it was unclear, i was making a sh script and needed to know how to copy from one place to another.
thanx,

using the cp <file> <target_file> is what i was asking for but too unclear.
 
Old 06-27-2006, 02:36 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
cp does not "copy from one place to another" in a script (or anywhere else)

cp is for copying files--you are looking for text-editing commands.

Tell us what distro and what text editor, and we can be more helpful.
 
  


Reply


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
Cut and paste from command line dulli1 Linux - Newbie 9 10-12-2010 09:31 PM
How to copy-paste on command line? jameshao Linux - General 3 02-02-2009 01:14 AM
How do you copy and paste a line in VI? Thaidog Linux - General 3 05-08-2005 05:46 AM
copy and paste in with command exper Linux - Software 1 12-26-2003 09:28 AM
Copy Paste under command line? Stingreen Linux - General 7 02-10-2002 06:46 PM


All times are GMT -5. The time now is 10:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration