One little niggle...

Goatmilk

Active Member
Joined
Jul 27, 2024
Messages
221
Reaction score
122
Credits
2,428
There's one little niggle in Linux that drives me crazy: ctrl c and ctrl v (and likely ctrl x, too).

I'm used to do those forever, and for the most part they work in Linux. But in some instances, they don't. If I copy something into the terminal, say, for example, sudo apt update,
it either comes out as ^[[200~sudo apt update~ , or ^V. When I use it with 'copy' and 'paste' from the right click menu, it comes out right.

Trouble is that I'm so used to the keyboard shortcut that I'm doing it automatically. Gotta sit on my left hand to keep the claws from the board.

Is that normal or is it something in my keyboard/Linux that's not right? It's the same thing with the laptop keyboard AND the big computer's keyboard that I actually prefer to use.
 


you can change it with different terminal apps - for example, in Black Box (terminal app), go into Menu > Preferences > Keyboard and remap copy and paste.
 
My hero!
 
After you have copied , go to the terminal and hold down ctrl and shift and then press v to paste

EDITED TO CORRECT THE ABOVE ^^^
 
Last edited:
@Goatmilk :-

I very much doubt it's got ANYTHING to do with your keyboard. It's far more likely to be due to the particular font recognition/interpretation routines supported by any given terminal emulator.

They're NOT all the same, believe me.....and there's scores of different ones out there.


Mike. ;)
 
Note that you shouldn't change bindings for CTRL + C for terminal, this is universal shortcut to break programs in CLI.

^THIS

Remap your fingers when it comes to standards. As OP is still fairly new, they may ask a question that involves pressing CTRL + C. If they've mapped a new command to that combination, who knows if they can even still stop an application in the terminal?
 
Note that you shouldn't change bindings for CTRL + C for terminal, this is universal shortcut to break programs in CLI.
By universal I mean it works in all OS's the same, Windows, Linux, Mac it doesn't matter.

^THIS

Remap your fingers when it comes to standards. As OP is still fairly new, they may ask a question that involves pressing CTRL + C. If they've mapped a new command to that combination, who knows if they can even still stop an application in the terminal?

Oops...

Wondering... I might leave it as it is for now, but keep it in mind and see it as some kind of life experiment.

Next week I'll install the same MX Linux in my big computer and see if there's a difference. But funny, I'm pretty sure old DOS did have the ctrl c,v,x, as well as the f4, f5, f6 etc. That's where I got it from. I think...

But then, it's been a while, and actually I can't remember what I had for dinner last Sunday, so I might as well be wrong.
 
I might leave it as it is for now, but keep it in mind and see it as some kind of life experiment.

Open your terminal and enter ping google.com.

You'll notice that it keeps on going. If you close the terminal, that doesn't end the process. It will keep running that ping command in the background until you log out or reboot.

If you press CTRL + C while in that terminal, that should stop the process from running. It kills the running process.

You can remap all sorts of things. Before you do so, I'd suggest becoming more familiar with Linux.
 
Having used Linux for over 11 years now, ctrl + c still gets me sometimes in the terminal. Over 11 years now, I'm not going to remap the shortcut in the terminal. I mostly remember to use the mouse, and get angry with myself when I forget. :)
 
There's one little niggle in Linux that drives me crazy: ctrl c and ctrl v (and likely ctrl x, too).

I'm used to do those forever, and for the most part they work in Linux. But in some instances, they don't. If I copy something into the terminal, say, for example, sudo apt update,
it either comes out as ^[[200~sudo apt update~ , or ^V. When I use it with 'copy' and 'paste' from the right click menu, it comes out right.

Trouble is that I'm so used to the keyboard shortcut that I'm doing it automatically. Gotta sit on my left hand to keep the claws from the board.

Is that normal or is it something in my keyboard/Linux that's not right? It's the same thing with the laptop keyboard AND the big computer's keyboard that I actually prefer to use.
if you are trying to paste into a terminal windows the cntrl v etc does not work. well you know that. but you can right click the mouse and hit paste and it will work
 
CTRL + Insert copies text, the same as CTRL + C and the right-click copy operation.

You also have a second cache. Highlight text and do nothing else. Find somewhere that accepts text, and press the middle (scroll) button straight down on your mouse.

You have the standard clipboard, as is being discussed here.

You have a secondary clipboard, which pastes the last text you highlighted.
 
@Goatmilk - you are using MX-linux KDE, yeah?

I'd suggest that if you have not already done so, you set up your Konsole with a menubar showing.

This can be effected by right-click in the black window, then scroll down and check

Show menubar

Once showing, click menu entry for Edit and you will see at top of choices

Copy Ctrl+Shift+C
Paste Ctrl+Shift+V

The c and v do not need to be uppercase.

Once you use those a number of times, it will become second nature.

HTH

Wiz
 
Open your terminal and enter ping google.com.

You'll notice that it keeps on going. If you close the terminal, that doesn't end the process. It will keep running that ping command in the background until you log out or reboot.

If you press CTRL + C while in that terminal, that should stop the process from running. It kills the running process.

You can remap all sorts of things. Before you do so, I'd suggest becoming more familiar with Linux.

I did that, and ctrl c did stop the process indeed, even though it is still set to copy.

Funny thing though - as I watched that google thingie hop on, I discovered my old keyboard must have an error, anyway: the ctrl pause/break key didn't work that's used to stop stuff. I've totally forgotten about it, as I hardly ever, or rather never, used it in Windows 7.

Or maybe modern systems simply don't have that anymore. The laptop keyboard sure does not even have a pause/break key. My old keyboard still does, and when I sought to stop the google thing, I remembered it again. Or rather, my fingers did. Had anyone asked me before, I probably wouldn't have known.

(Probably should have mentioned that I connected my old keyboard to the laptop because I don't like that flat laptop keyboard.)

@Goatmilk - you are using MX-linux KDE, yeah?

I'd suggest that if you have not already done so, you set up your Konsole with a menubar showing.

This can be effected by right-click in the black window, then scroll down and check

Show menubar

Once showing, click menu entry for Edit and you will see at top of choices

Copy Ctrl+Shift+C
Paste Ctrl+Shift+V

The c and v do not need to be uppercase.

Once you use those a number of times, it will become second nature.

HTH

Wiz

I do have MX Linux KDE, yes, and I have menu bar showing in Konsole. I just never thought to change the keys before theLegionWithin mentioned the possibility.

Unfortunately, I didn't get used to the ctrl shift c. The moment I thought about it, I used the right click menu and all was fine. Trouble starts the minute I stop thinking... (well, ain't that the truth...)

Truth be told, I'm actually happy about it the way it is right now. I still can stop a process, even though I've changed ctrl c and the pause/break key doesn't seem to work. Maybe that would be another thing to set up, but I guess I rather leave it alone for now and watch it for a while.

My old buddy always told me to never change too much at once. Watch it for a while to see how it runs, and then you still can go and screw up things later.
 
Trouble starts the minute I stop thinking... (well, ain't that the truth...)

Join the club. Membership is free, and I am the President.
 
Watch it for a while to see how it runs, and then you still can go and screw up things later.
That's a fact !!....I can vouch for that !
 
anyway: the ctrl pause/break key didn't work that's used to stop stuff.

I do not think that's a standard/convention in most Linux terminal emulators.
 


Follow Linux.org

Staff online

Members online


Top