Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How do I get the copy/paste functionality in a terminal session in Linux (i. e. with no desktop at all, like when you press Alt+Ctrl+F1 in Ubuntu)? Is there a package that could substitute Ctrl+Shift+C and Ctrl+Shift+V functionality that exists in desktop terminals?
You can look at xclip in Linux:
echo hello | xclip
To copy to the clipboard. Then:
xclip -o
to paste it. Depending on what you want to do, there are also the crtl+u to cut a line from the terminal, and crtl+y to paste it (on the same terminal only though).
Hope it helps!
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
The keyboard shortcut Ctrl+` (Ctrl+backtick) doesn't work in Linux based terminals like urxvt, gnome-terminal, xfce-terminal, Git Bash on Windows, etc.
Is this a bug or a feature?
All other applications like Emacs and VS Code accept this keybinding.
Following keybinding works for my xterm/ubuntu:
#!/bin/bash
xrdb -merge << 'EOF'
XTerm*VT100.translations: #override\n\
Ctrl <Key>` : string("ls -la")string(0x0d)
EOF
# then start a new xterm
With some adaptation, it should work for urxvt and xfce-terminal.
Update
For xfce4-terminal, you can put following line in ~/.config/xfce4/terminal/accels.scm
(gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>grave")
So that Ctrl-` will paste.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
To clarify, when entering the default shell in OS X it appears as:
pcname:~ username$
and changing directories appears as:
pcname:myFolder~ username$
however, in my experience with linux distros, the shell appears as:
username#pcname:~$
what is the purpose for the differences in syntax?
What I do is the following: On the system that has the promt the way I want it, I type:
echo $PS1
I copy the result, say, \u#\h \w\a \$ and then edit the ~/.bashrc on the system that I want to use with the line:
export PS1="\u#\h \w\a \$ "
And then I get the same prompt on that system as well.
If you want to get creative, have a look here
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
basically I want to set a shortcut (ctrl+k) in my cygwin linux terminal to run
bind '"\C-k": kill-whole-line'
THEN immediately run
alias cls="echo -e '\033c\c'"
Both work by themselves but I would like to do it in one keyboard shortcut. Thanks in advance!
This sequence clear current input and executes terminal reset.
bind '"\C-k": "\C-e\C-uecho -e \"\\033c\\c\"\n"'
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a file: /home/qq/file.txt
I want to copy it to the following directory: wly3#hills.ccsf.edu:/students/wly3/
The way I do it currently it is with the following code with the terminal not in ssh:
scp '/home/qq/file.txt' wly3#hills.ccsf.edu:/students/wly3/
How do I accomplish the equivalent while I am logged into the hills.ccsf.edu server via SSH?
For clarification, if I type in
ssh wly3#hills.ccsf.edu
then type in my password and login, what line(s) of code do I type to get file.txt to the directory /students/wly3/ ?
Open file.txt in a text editor and copy it to the clipboard. Then in the Terminal window with SSH running, type:
cat > /students/wly3/file.txt
Then paste the clipboard, and type Control-d to send EOF.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When I use the unix screen command to open a screen and I run a unix command (say ls), the text at the top disappears and I can only see what comes at the end of the output. How can I capture the complete output in the window?
Using Screen capabilities:
Ctrl+a then escape and you'll be able to move your cursor as in regular text editors