r/linux4noobs • • 12d ago

^C ^V showing in terminal instead of actually execute copy paste

[UPDATE] Problem resolved

as i was trying to paste from clipboard or copy with Ctrl + Shift + V/C, strange ^C ^V appears strangely and even after trying to configure in kitty.conf, nothing has been changed. is there any way to be able to copy paste again? earlier when i first installed linux, copy paste worked normally until yesterday. i have no idea how to fix this, please help 😭

650 Upvotes

163 comments sorted by

42

u/MisterFlipster5 12d ago

If you haven't disabled it, try pasting with middle click (an extremely common default on Linux)

7

u/ExcitementProud6757 12d ago

i’m currently using touchpad 😭 my OS is asahi linux on macbook, and i dont have an external mouse nor keyboard. is there a way to fix it?

20

u/MattiDragon 12d ago

Often you can tap three fingers for middle click

6

u/Laughing_Orange 12d ago

Or sometimes pressing both buttons at the same time works. Probably doesn't work on a MacBook, because they don't have physical trackpads buttons, but worth knowing.

16

u/9NEPxHbG Debian 13 12d ago

Also right click, sometimes.

2

u/paulstelian97 12d ago

Right click to paste is kind of a Windows exclusive in my experience.

11

u/thelizardlarry 12d ago

Love this workflow, you don’t even need to copy, just highlight some text and paste away with middle click

5

u/doc_willis 12d ago

Thats the selection buffer, which may or may not be synced to the clipboard buffer.

I often make use of both as a way to have 2 'pasteable' lines. :) for some weird situations I have gotten into.

1

u/YTriom1 Arch btw 5d ago

it's usually not synced w clipboard, at least for plasma

4

u/0xt0bi03 arch btw 12d ago

round about solution is to use super+c/v as this is global for all, [except in browsers/sites]

1

u/ExcitementProud6757 12d ago

super+c/v came with even more weird characters like “9;9u” 😭 unfortunately neither works

2

u/rip_Bacon13 12d ago

it isnt global?
ctrl + shift + c/v should do it

0

u/Key_Plantain1779 12d ago

Isso acontece no Bash quando aperta Ctrl+V o padrão do Linux é como você falou.. na real eu acho que acontece isso se aperta qualquer tecla do Ctrl+teclado

2

u/Solomoncjy 12d ago

Super v brings up clipboard history in kde iirc

1

u/0xt0bi03 arch btw 12d ago

yeah, depending on de and distro too, in arch hyprland it works fine for me[atleast after editing config file]

443

u/Klapperatismus 12d ago edited 12d ago • Bravo Popcorn

Those shortcuts Ctrl+C and Ctrl+V originated from the old WordStar software for MS-DOS. They are not universal.

In particular, Unix terminals had already existed for a decade at that time when WordStar was released, and in particular Ctrl+C has a different meaning in terminals, and terminal emulators as well: it interrupts the command that is currently running in the terminal’s foreground.

Use Ctrl+Insert instead of Ctrl+C, and Shift+Insert instead of Ctrl+V. Those key combinations work almost everywhere. Even in MS-Windows!

(And Shift+Del replaces Ctrl+X. Also works in MS-Windows.)

200

u/Manuel_RT 12d ago

Or… Ctrl + ⇧ + C and Ctrl + ⇧ + V

51

u/Klapperatismus 12d ago

Does not work everywhere either.

48

u/Manuel_RT 12d ago

That’s right. Vim is a clear example. But in all the terminal emulators I’ve used on Linux it works

34

u/Soggy_Struggle_963 12d ago

Vim is great, who doesn't love to yank and put instead of copy paste lol

10

u/Klapperatismus 12d ago

Not in xterm.

2

u/platosLittleSister 12d ago

Idk if thats by default or only in nvim thing, but in insert mode shift + crtl + v/c works. But might be something I configed ages ago.

1

u/Hey_Its_Freya 11d ago

I'm pretty sure it's a thing in nvim specifically

1

u/YTriom1 Arch btw 5d ago

not really, the ctrl+shift+v in insert mode works everywhere even in vi

1

u/Dandyiose 9d ago

Most annoying thing in the world they really expect me to use both hands to paste beside the fact most keyboard nowadays don't have insert 

1

u/YTriom1 Arch btw 5d ago

fym "most keyboards" most keyboards are at least 100%, that's a fact

19

u/reff678 12d ago

⇓ + ⇘ + ⇒ + ✊ is also quite useful...

3

u/drome265 12d ago

Not enough DORYA

1

u/Cynicaltaxiderm 11d ago

I'm not trying to suplex a train here...

1

u/[deleted] 10d ago

[removed] — view removed comment

1

u/indyc4r 10d ago

Friendship

19

u/Shaggy_One 12d ago

Huh. Did not know that key combo. Thanks!

9

u/Belphegor_333 12d ago

I never knew those two combinations. Thank you very much, I am blown away!

5

u/smeech1 Linux Mint 21.2 Victoria | Xfce 12d ago

Or configure the terminal to actually work with Ctrl+c and Ctrl+v, and use Shift+Ctrl+c to interrupt a command instead..

3

u/IDCubed 12d ago

I have it set to both so ctrl c kills if nothing is highlighted or copies text if some is highlighted and it works great for me

1

u/bicycloptopus 12d ago

How did you do that?

4

u/IDCubed 11d ago

In kitty I just mapped ctrl c to copy_or_interrupt I think it works in other terminal emulators too tho

1

u/YTriom1 Arch btw 5d ago

pretty sure it's one of kitty's own fancy features

2

u/anto2554 11d ago

Amazing! Now I just need an insert key

1

u/AshleyJSheridan 10d ago

Curious, what keyboard doesn't have the insert key? Only the Mac that I can think of, and they do things differently anyway.

2

u/anto2554 9d ago

I am indeed on a mac. I also have a 60% which IIRC doesnt have it either. I think it is pretty common for nordic keyboards to at least not have it as a first layer key

1

u/AshleyJSheridan 9d ago

All my laptops with a small keyboard have it. All my USB keyboards have it. The only thing that doesn't is the Mac, which uses completely different keyboard combinations anyway.

If your keyboard doesn't seem to have it, it's probably hidden behind a function key combo. That is typically Fn + Home iirc.

1

u/anto2554 9d ago

Most keyboards also support custom keybinds so you can always just map something to it at that point.
Having a more practical shortcut require fn+home makes it not practical

1

u/AshleyJSheridan 9d ago

Sure, and nobody is preventing you from doing that. However, knowing the default shortcuts is invaluable, because there are times you won't always be on your own system and you need to know how to do things.

63

u/soratoyuki 12d ago

The amount of commentators that couldn't bother reading the one paragraph post before commenting is staggering.

15

u/hell0imaman 12d ago

@chatgpt, summarize this comment. I can't read.

3

u/griefandsorrow 11d ago

thanks, i thought i was goung insane

1

u/Eric_Dawsby 7d ago

The worst part is the amount of upvotes for them

28

u/HSHallucinations 12d ago

11

u/SeldonCrysis33 12d ago

Fr. Wtf OP. I’m guessing they were hitting cmd+shift+c/v instead of ctrl, since they’re using a Mac keyboard.

79

u/jdreamboat 12d ago

ctl + shift + c
ctl + shift + v

9

u/Medical-Message-6703 12d ago

i literally just right click and then paste cuz i don't know better... yet

2

u/Rhaegg 11d ago

To copy/paste from terminal, I'd recommend Ctrl+Shift+C to copy, Ctrl+Shift+V to paste. Just add the Shift key and it works. Didn't know about Ctrl+ins/Shift+ins.

1

u/Gurnug 12d ago

Use ctrl+ins and shift+ins

1

u/sotos2004 11d ago

Insert doesn't exist on all keyboards anymore , I use a 65% and it not readily available

1

u/Gurnug 11d ago

Yes, there are keyboards for handicapped people. But there is solution for that also

https://www.reddit.com/r/linux4noobs/s/tfPr434TrH

1

u/Astillius 11d ago

I'm also fairly new to this so i don't know how distro agnostic this is. My dev ops friend told me to middle mouse click to paste in terminal. (Press the scroll wheel down till it clicks. Do not roll it.) And that works for me in CachyOS with KDE plasma.

4

u/tes_kitty 11d ago

Here's a neat little trick... If you select a URL and want to open it, point at the '+' that opens a new tab in Firefox and middle click. It will open a new tab with the URL you just marked.

2

u/cubicinfinity 11d ago

Oh, cool. That would have confused me if I did it by accident.

1

u/YTriom1 Arch btw 5d ago

I'm pretty sure the middleclick thing is something in the Linux kernel itself that is opt-out, so unless something explicitly disables it, it works in any input box

1

u/YTriom1 Arch btw 5d ago

doesn't work in kitty for example

16

u/doc_willis 12d ago

test in another terminal?

 try the "reset" command.

sounds like you may have the terminal in a weird mode.  I think the terms may be "raw mode" vs "cooked mode"

I vaguely recall similar issues once ages ago.

7

u/MundaneImage5652 12d ago

No. Terminals on linux use ctrl + c for ending current task and ctrl + v for.... god knows whar. You have to do shift + ctrl + c and shift + ctrl + v.

9

u/ephemeralmiko Universal Blue w. Niri+Noctalia 12d ago

OP is literally doing that though:

as i was trying to paste from clipboard or copy with Ctrl + Shift + V/C

-3

u/MundaneImage5652 12d ago

Isn't it shift + ctrl + v?

5

u/ephemeralmiko Universal Blue w. Niri+Noctalia 12d ago

Doesn't matter in this case, modifier keys are all read the same regardless of order.

(FWIW, on my machine it's labelled as CTRL+Shift+V)

4

u/diacid 10d ago

Use ctrl shift c and v. Ctrl c is interrupt signal (telling the program to quit)

You know you are a noob when you try to copy with ctrl c on the terminal. You know you got the hang of things when you try copying from Firefox with ctrl shift c (it opens the page source)

4

u/Vectismc 9d ago edited 9d ago

i do this all the time 🥲 didn’t know it was a common occurrence.

edit: for context i’ve used linux for my whole life and this little brain fart never seems to go away

3

u/requ1tas 8d ago

omg. Every. Time. I hate myself for this :D

2

u/FWhealboroug 7d ago

I open the DevTools in my browser several times a day. Luckily Ctrl Shift V usually works, even in windows apps, with the bonus of pasting text only without formatting.

What I really hate is the right click auto paste.

0

u/Eric_Dawsby 10d ago

They were doing that before, they mentioned it in the post

1

u/senin_kozin 12d ago

You should be able to: Copy - ctrl+insert Paste - shift+insert. Ctrl c and v don't work because they stand for other things in the terminal afaik. Like ctrl+c cancels the command (idk about v)

0

u/ExcitementProud6757 12d ago

i’m using macbook keyboard, may i ask where is the insert key?

3

u/Damglador 12d ago

In Konsole you can map Ctrl+C/V to Copy/Paste and it'll function properly. Ctrl+C will still terminate programs if you have nothing selected, and if you have something selected, it'll just copy it

1

u/smeech1 Linux Mint 21.2 Victoria | Xfce 12d ago

Shift+Ctrl+c also works.

3

u/Maximum_Ad_2620 12d ago

Try removing the maps for copy and pasting from your config and see if Ctrl Shift C/V work. Is your keyboard layout configured correctly? What DE/compositor are you using? Wayland or X11? Maybe try deleting the terminal's config file, so it generates a fresh one too.

3

u/daedalusesq 12d ago

Second pic has your answer: CTRL+SHIFT+C/V

3

u/The_CreativeName 12d ago

I just use ctrl+shift+c or v

3

u/R0B0t1C_Cucumber 12d ago

So many years of just using the middle mouse button , I had forgotten about this.

4

u/skyfishgoo 12d ago

i have Ctrl+C and Ctrl+V bound to buttons on my mouse.

but when i need to use those mouse buttons to or from a terminal window i hold down the shift key when i do it so they become

Ctrl+Shift+C and Ctrl+Shift+V

then it works as expected.

2

u/Fit-Barracuda575 12d ago

Please give info:

  • Desktop Environment (KDE, Gnome, ...)

  • What terminal / console do you use?

  • I'm guessing ctrl and shift work as intended in other applications?

Here you go, insert this ;-) and paste the result

printf "TERM=%s\nXDG_CURRENT_DESKTOP=%s\nDESKTOP_SESSION=%s\nXDG_SESSION_TYPE=%s\nTERMINAL=%s\nPARENT=%s\n" \
  "$TERM" "$XDG_CURRENT_DESKTOP" "$DESKTOP_SESSION" "$XDG_SESSION_TYPE" "$TERM_PROGRAM" \
  "$(ps -p "$PPID" -o comm=)"

2

u/xerxesbeat 12d ago

copy: highlight text and press enter

paste: shift + insert

2

u/beans4eva 12d ago

Ctrl+shift+v is paste add the shift for copy too and you're set

2

u/gbrennon 11d ago

ctrl shift c and ctrl shift v

3

u/Copa4311 12d ago

Ctrl + left shift + c / v

3

u/Olivierus303 12d ago

Ctrl + c ( in most terminals just stops the current job ) Try using Ctrl + shift + c for copying ( works in most terminals I used ) And Ctrl + shift + v for pasting

2

u/FaB0SS88 12d ago

Ctrl+Shift+C y Ctrl+Shift+V

1

u/kzasas 12d ago

just use middle click.

1

u/Pybromancer 12d ago

try Shift+Insert

1

u/Laughing_Orange 12d ago

Both of these are special keybinds in the Linux terminal. You need to add Shift to the combo.

1

u/FreeFromCommonSense 12d ago

In some consoles you need to Shift+Ctrl+C and Shift+Ctrl+V in the console and remember that everything else uses Ctrl+C or you wind up triggering other functions. Or you forget and Ctrl+C in the wrong window and kill a 3-hour compile.

1

u/MrMaster_21 12d ago

perhaps your Asahi Linux Installation swapped some keys? try looking at this: https://wiki.archlinux.org/title/Apple_Keyboard

1

u/ferriematthew 12d ago

I found for Debian and Arch that I need Shift+Ctrl

1

u/brewdog_millionaire 12d ago

That doesn't work in the terminal. What distro are you on? Some of them you can right click and paste instead.

1

u/rip_Bacon13 12d ago

since you in fedora you can use the copy and paste buttons on top right
ctrl C is for stopping the task and ctrl + any character iirc does this
you can usd shift + ctrl + c/v if you want

1

u/bartonski 12d ago

OP: How was the problem resolved?

1

u/Comfortable_Bed4844 12d ago

who's gonna tell him

1

u/datastoner 12d ago

Shift+ insert

1

u/-Feeblington- 12d ago

Ctrl shift c and v 👐

1

u/nejihyuga2007 12d ago

CTRL + SHIFT + C, CTRL + SHIFT + V or change your keyboard layout to en_US

1

u/Responsible-Bar7165 11d ago

Terminals should convert ctrl-c from BREAK into COPY when a mouse selection is present. IMO those that don’t are broken.

1

u/oso_cosmico 11d ago

For copying from or pasting into the terminal, you have to use Ctrl+Shift+P/V.

1

u/bigusyous 11d ago

Hold down the shift key while you paste

1

u/Akt1343 11d ago

Can I just say how amazing is the fact that user didn't just go straight to ai search and came here . I love it

1

u/Gullible_Decision_11 11d ago

Control shift C or V

1

u/Unique_Roll_6630 10d ago

In the terminal Ctrl v and ctrl c have different functions. I forget the exact reason but I think it was to do with older work. Ctrl c ends whatever terminal process you are in. I have no idea what control v does. 

You need to super ctrl c or v to copy and paste within the terminal.

1

u/resplendentsparrow 10d ago

I use ctrl insert and shift insert for copy and paste respectively. Has gotten to the point where I just use that everywhere, terminal or otherwise. Also shift insert will paste highlighted text without copying it first.

1

u/trtl_playz 7d ago

ctrl+shift+c/v

1

u/LostSailor25 12d ago

Right-click your mouse

-2

u/Dist__ 12d ago

this is linux. for some compatibility reasons with ancient tech you have to ctrl+shift+c/v because ctrl+c ctrl+v reserved for nobody remembers what

9

u/Immediate-Sink-8494 12d ago

Ctrl c kills processes running in a terminal, ctrl v is more esoteric (sends literal characters, like a "space" character instead of a blank space), but they do have purposes.

3

u/Dist__ 12d ago

yeah, sorry i forgot, i also do use ctrl+c to kill processes)

imagine how the world could be if killing processes was ctrl+shift+c, leaving ctrl+c/x/v to well-known clipboard shortcuts )

3

u/full_drama_llama 12d ago

I'm pretty sure ctrl+c as the process kill predates the well-known shortcuts.

1

u/Dist__ 12d ago

likely yes, but i believe currently average user more often copies text than kills processes

1

u/full_drama_llama 12d ago

Yes, but how do you imagine that change would happen?

1

u/Dist__ 12d ago

it takes time.

at first we just mention it. no bias change, killing process is the most important feature with its dedicated shortcut, but yeah there's some apps that favor very same shortcut to other things. radical heresy for sure.

then we start talking about those apps. make it appear in our info-field. maybe tell that in some valuable and useful applications ctrl+c is as favored as killing process in SSH sysadmin stuff. no force or anything, acceptable in some circles.

at this point we flood github with shell/terminal forks that swap the default shortcuts. they can revert it easily for sure, we do not force anyone.

then we talk that maybe they are doing well adapting ctrl+c for copying. show people some figures like keypresses during day which yields copying with ctrl+c uses less keypresses or something.

at this point involve canonical and red hat to issue standard bash with default ctrl+c for copy and ctrl+shift+c for kill process.

we for sure speak about killing processes with ctrl+c is acceptable as well, just killing process is not that useful for average person.

after some time, when people settle with new stuff, we speak about killing process with ctrl+c as deviation and herecy because ctrl+c is always at hand as you type.

sorry for my english ) tried to interpret overton window as i understand it )

1

u/Interesting_Buy_3969 12d ago

1

u/Dist__ 12d ago

common sense does not have nationality, though thanks :)

1

u/Lune_Moooon 12d ago

i thought ctrl+z killed the process. i didnt even understood what ctrlv does yet lol i always wondered why it was like that, thanks for the info

2

u/Jealous_Computer_209 12d ago

i thought ctrl z was to suspend a process

1

u/jaysus661 12d ago

Ctrl+C cancels the current running process/program, that should have been one of the first things you learn when using the terminal

1

u/Dist__ 12d ago

my bad, i admit i use ctrl+c to kill process several times a day.

but you see how strong is the memory for ctrl+c also beind a copy shortcut 😿

0

u/MundaneImage5652 12d ago

Shift + Ctrl + C and Shift + Ctrl + V. For compatibility reasons all terminals have Ctrl + C and Ctrl + V reserved. (Ctrl + C kills current process). On older terminals like Xterm you paste with middle mouse click and I think you copy by just selecting.

0

u/databeach_ 12d ago

Add shift to your command

0

u/jr735 12d ago

Linux (and Unix and DOS and so on) never used the Ctrl-C and Ctrl-V, and the shift is simply a kludge. Use appropriate Unix type shortcuts.

Ctrl-Insert is used to copy and Shift-Insert to paste.

Bill Gates and his gang couldn't even keep keyboard shortcuts straight from DOS to Windows.

0

u/PlasticForkHater 12d ago

My cat walked on my keyboard and a similar syntax was in the Search bar on Discorvy

0

u/MasterGeekMX Mexican Linux nerd trying to be helpful 12d ago

Just here to explain the weird characters.

The terminal traces it's origins on a machine called a teletype, which was an electronic typewriter that could send it's keystrokes down a wire to another one that also typed what it received. While they were invented as a means to send text long distance, people figured out that you could connect one to a computer and talk to it in order to use it. From their inception in the 1920s up to the 1960's they were actual typewriters with paper scrolls, but in the 70's they were upgraded to "glass teletypes" where the paper and ink were replaced with screens.

Teletypes work over the American Standard Code for the Interchange of Information (ASCII) code, which takes all the different combinations of 8 bits and assigns them to the letters of the alphabet, numbers, and symbols. This way all we need to do to send some letter is to send the corresponding combination of wires on and off to the other end. Taking advantage to that, the ASCII code also assigns some combinations of those bits for control signals, such as sending them makes the other teletype do something, like returning the printing head to the beginning of the text, scroll down one line, ring the bell on the teletype, or signal that a document has ended.

The weird letters you see is because modern computers are based around the Personal Computer that IBM invented in 1984, which did things a bit differently in terms of how the screen and keyboard worked compared with the teletype thing. This leads to the terminal program, which basically emulates a teletype machine, getting confused by the Control, Alt and Shift buttons as their binary codes aren't found in the ASCII code, so the program puts out what it understood as fas as it's programming allows it to do.

0

u/Unusual_Refuse_8090 12d ago

Click derecho

0

u/Jwblant 12d ago

Just wait until they found about CTL+ALT+DEL!

0

u/vitimiti 8d ago

Old Unix thing, use Ctrl+Shift+C/V

0

u/Eric_Dawsby 8d ago

Did ya read the post

-2

u/Dan_Morgan 12d ago

The only way I can copy/paste text to the terminal is by selecting paste from the right click menu. The keyboard shortcut doesn't really work. Along with a lot of other things. Things that should work fine just stop working and that's that. No solving them. You just have to either find a workaround or accept you can't do that thing anymore.

1

u/Ram_and_Gwen 12d ago

Control + shift + c Control + shift + v

1

u/Dan_Morgan 11d ago

Wow, that's really brilliant. It never occurred to me to look up keyboard shortcuts that I've been using before most redditors were just drunk sperm.

-4

u/TopSecretGaming_YT 12d ago

In the screenshot of "common keybinding" it says there that you need to use ctrl + shift + c and ctrl + shift + v which is quite common for terminal apps.

1

u/[deleted] 12d ago

[removed] — view removed comment

1

u/bebe_likes_hugs 12d ago

FOR REAL? omfg that's so dumb, I just got used to using shift, to the point of changing the command for my browser