LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 01: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, 01:37 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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, 02: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, 03: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, 03: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, 03:35 PM   #6
thenewguy05
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
thanks cp worked great.
 
Old 07-13-2004, 03: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 01: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 11:46 AM
copy command with out prompt imsajjadali Red Hat 4 05-30-2004 11:42 PM
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 05:26 PM.

Main Menu
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