Copy File to ClipboardUseful Command-line Commands on WindowsAutocopy selected text to clipboard, as in...
Brake pads destroying wheels
Word for flower that blooms and wilts in one day
gerund and noun applications
What can I do if I am asked to learn different programming languages very frequently?
What are substitutions for coconut in curry?
Bash - pair each line of file
What does "Four-F." mean?
Can you move over difficult terrain with only 5 feet of movement?
World War I as a war of liberals against authoritarians?
How do hiring committees for research positions view getting "scooped"?
PTIJ What is the inyan of the Konami code in Uncle Moishy's song?
I seem to dance, I am not a dancer. Who am I?
HP P840 HDD RAID 5 many strange drive failures
Writing in a Christian voice
Worshiping one God at a time?
Knife as defense against stray dogs
What is the relationship between relativity and the Doppler effect?
Why is indicated airspeed rather than ground speed used during the takeoff roll?
Synchronized implementation of a bank account in Java
How does 取材で訪れた integrate into this sentence?
PTIJ: Do Irish Jews have "the luck of the Irish"?
How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?
Pronounciation of the combination "st" in spanish accents
Should I be concerned about student access to a test bank?
Copy File to Clipboard
Useful Command-line Commands on WindowsAutocopy selected text to clipboard, as in PuTTyRedirect Linux terminal to clipboardssh -x : howto get clipboard?how to send a file into clipboard from command line (CLI)?How to copy file preserving directory path in Linux?RDP Clipboard File transfer in Windows Server 2008 R2Clipboard Stops Working over RDP?Initiating transfer between two servers via terminalHow to kill a runaway/rogue clipboard paste into the CLI?
Simple Question that I just realized would be very useful.
Under Linux (or really any 'nix environment) is it possible from the command line (or by other fashions, but primarily command line) to copy a file to the clipboard? Any example of this working would be appreciated but the best answer would be a general case in which this is possible across multiple 'nix environments (I'm running Fedora 10 atm if that makes any difference).
command-line-interface copy nix clipboard
add a comment |
Simple Question that I just realized would be very useful.
Under Linux (or really any 'nix environment) is it possible from the command line (or by other fashions, but primarily command line) to copy a file to the clipboard? Any example of this working would be appreciated but the best answer would be a general case in which this is possible across multiple 'nix environments (I'm running Fedora 10 atm if that makes any difference).
command-line-interface copy nix clipboard
add a comment |
Simple Question that I just realized would be very useful.
Under Linux (or really any 'nix environment) is it possible from the command line (or by other fashions, but primarily command line) to copy a file to the clipboard? Any example of this working would be appreciated but the best answer would be a general case in which this is possible across multiple 'nix environments (I'm running Fedora 10 atm if that makes any difference).
command-line-interface copy nix clipboard
Simple Question that I just realized would be very useful.
Under Linux (or really any 'nix environment) is it possible from the command line (or by other fashions, but primarily command line) to copy a file to the clipboard? Any example of this working would be appreciated but the best answer would be a general case in which this is possible across multiple 'nix environments (I'm running Fedora 10 atm if that makes any difference).
command-line-interface copy nix clipboard
command-line-interface copy nix clipboard
asked Jun 25 '09 at 17:19
akdomakdom
1113
1113
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Looks like you want xclip
.
Usage:
xclip -t clipboard somefile
or an example using using pipes:
grep "needle" myfile.txt | xclip -t clipboard
Without the -t clipboard
the data will go to PRIMARY selection.
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
add a comment |
Are you in X? Or text-only?
If you're in text mode, it's dead simple if you're using screen (which is awesome):
<C-A>:readbuf /path/to/file
To paste:
<C-A>]
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f31727%2fcopy-file-to-clipboard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looks like you want xclip
.
Usage:
xclip -t clipboard somefile
or an example using using pipes:
grep "needle" myfile.txt | xclip -t clipboard
Without the -t clipboard
the data will go to PRIMARY selection.
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
add a comment |
Looks like you want xclip
.
Usage:
xclip -t clipboard somefile
or an example using using pipes:
grep "needle" myfile.txt | xclip -t clipboard
Without the -t clipboard
the data will go to PRIMARY selection.
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
add a comment |
Looks like you want xclip
.
Usage:
xclip -t clipboard somefile
or an example using using pipes:
grep "needle" myfile.txt | xclip -t clipboard
Without the -t clipboard
the data will go to PRIMARY selection.
Looks like you want xclip
.
Usage:
xclip -t clipboard somefile
or an example using using pipes:
grep "needle" myfile.txt | xclip -t clipboard
Without the -t clipboard
the data will go to PRIMARY selection.
edited 4 mins ago
Pablo Bianchi
1275
1275
answered Jun 25 '09 at 17:26
chaoschaos
6,69542846
6,69542846
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
add a comment |
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
+1: Awesome! I figured there was a program like that around, but didn't know the name :)
– MikeyB
Jun 25 '09 at 18:10
add a comment |
Are you in X? Or text-only?
If you're in text mode, it's dead simple if you're using screen (which is awesome):
<C-A>:readbuf /path/to/file
To paste:
<C-A>]
add a comment |
Are you in X? Or text-only?
If you're in text mode, it's dead simple if you're using screen (which is awesome):
<C-A>:readbuf /path/to/file
To paste:
<C-A>]
add a comment |
Are you in X? Or text-only?
If you're in text mode, it's dead simple if you're using screen (which is awesome):
<C-A>:readbuf /path/to/file
To paste:
<C-A>]
Are you in X? Or text-only?
If you're in text mode, it's dead simple if you're using screen (which is awesome):
<C-A>:readbuf /path/to/file
To paste:
<C-A>]
answered Jun 25 '09 at 17:26
MikeyBMikeyB
33k781174
33k781174
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f31727%2fcopy-file-to-clipboard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown