Help answer threads with 0 replies.
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 06-27-2006, 11:03 AM   #1
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, 11:11 AM   #2
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?)

man cp
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, 01:56 PM   #3
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, 03:26 PM   #4
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.

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

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
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.


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

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