LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-29-2003, 02:16 AM   #1
BmxFace
Member
 
Registered: Jun 2003
Location: Minnesota
Distribution: Arch Linux :D
Posts: 105

Rep: Reputation: 15
copy and paste in a terminal?


how do i go about this?
 
Old 06-29-2003, 02:30 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hightlight with mouse and paste with middle button (if it's scroll, press it down). IF you only have 2 buttons, press them simultaneously.

Cool
 
Old 06-29-2003, 04:25 AM   #3
BmxFace
Member
 
Registered: Jun 2003
Location: Minnesota
Distribution: Arch Linux :D
Posts: 105

Original Poster
Rep: Reputation: 15
i was looking more for copying files from one dir and pasting in another. sorry about that
 
Old 06-29-2003, 04:36 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69


Use the cp command for that:
cp /path/to/files/* /path/to/other/files

If you only want specific files, not all of them, you can specify multiple files with one of the following:
cp /path/to/files/mov* /path/to/other/files
cp /path/to/files/file1 /path/to/files/file2 /path/to/files/file3 /path/to/other/files

If you want to copy an entire directory, all of it's contents, and all subdirectories:
cp -a /path/to/files/and/directories /path/to/other/files

A real life example:
cp -a /home/bmxface/.kde3 /home/masterc/

Will copy all the contents of .kde3 including subdirectories to masterc's home directory from bmxface's home directory (this can only be accomplished as root since you'll be entering 2 different users home directories, but that's just a side note).

Cool
 
Old 06-29-2003, 04:47 AM   #5
BmxFace
Member
 
Registered: Jun 2003
Location: Minnesota
Distribution: Arch Linux :D
Posts: 105

Original Poster
Rep: Reputation: 15
ok say i wanted to copy theme.ktheme from /home/user/Documents/Themes to /usr/share/themes what would i need to type? im a little confuzed
 
Old 06-29-2003, 05:08 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
cp /home/user/Documents/Themes/theme.ktheme /usr/share/themes

Most likely as root unless you've given your user enough rights on /usr/share/themes (which is a bad idea since it's in /usr which I prefer to keep root priviledges only.. but that's another thread another day )

Cool
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy and paste between apps and terminal in fluxbox carboncopy Slackware 3 02-25-2005 07:31 AM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM
copy and paste in terminal bash Linux - Software 3 07-08-2002 08:11 PM
Copy & Paste to Terminal monowar Linux - Newbie 1 07-02-2002 11:22 AM
copy/paste in a terminal session aethereal Linux - Newbie 4 12-19-2001 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:50 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
Open Source Consulting | Domain Registration