LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-13-2004, 02:18 PM   #1
thenewguy05
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
How do you copy and paste a file from a command prompt?


How do you copy and paste a file from a command prompt?

major
 
Old 07-13-2004, 02:37 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
please explain what you mean. one sentence is seldom enough.....

you're possibly after tools like....

cut
head
cat
sed
grep

which all have their own manpages for full information.
 
Old 07-13-2004, 03:52 PM   #3
thenewguy05
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I need to copy a config file into a computer over a ssh sesion.
 
Old 07-13-2004, 04:16 PM   #4
lone_nut
Member
 
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
you just mark the lines in a shell, and paste with the midle button. No need to press
anything on the keybord.
 
Old 07-13-2004, 04:24 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
you can use the command "cp" to copy a file

cp sourcefile destinationfile
 
Old 07-13-2004, 04:35 PM   #6
thenewguy05
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
thanks cp worked great.
 
Old 07-13-2004, 04:41 PM   #7
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
I had to revert to thinking in terms of Windows. Yes, cp is what you want.

If you want to cut/paste a file. The command you're looking for is mv
 
  


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
How to copy-paste on command line? jameshao Linux - General 3 02-02-2009 02:14 AM
Given a URL how to grab a copy of the file from a command prompt ? Mike Davies Linux - General 2 07-16-2005 12:46 PM
copy command with out prompt imsajjadali Red Hat 4 05-31-2004 12:42 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


All times are GMT -5. The time now is 12:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration