this post was submitted on 08 May 2025
218 points (96.6% liked)

Linux

54032 readers
1247 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] hexagonwin@lemmy.sdf.org 7 points 8 hours ago

selection autocopy and wheel/shift ins pasting is superior to all alternatives imo

[–] daggermoon@lemmy.world 8 points 12 hours ago (2 children)

Holy fucking shit. I just realized that's why Ctrl + C and Ctrl + V don't work in Micro. This has been eye opening.

[–] JoYo@lemmy.ml 1 points 5 hours ago
[–] spv@lemmy.spv.sh 1 points 8 hours ago

weird -- they work for me. ctrl+c sends SIGINT, and ctrl+v iirc isn't treated specially. i figured sending SIGINT with kill would then preform a copy, but it doesn't. fuck. now i have another puzzle...

[–] DonutsRMeh@lemmy.world 3 points 10 hours ago

I don't want copy paste buttons support, I want the caps lock delay to be fixed. Yes, I use the caps lock not shift, as my brain can't get used to using shift for caps. I'm so tired of typing like THis all the time. 😂 (I'm using a hack currently that helps, but it would be nice if it gets fixed on Linux in general).

[–] markstos@lemmy.world 14 points 19 hours ago (1 children)

My patch to add Copy/Paste keycode support to the Cosmic Terminal was merged!

https://github.com/pop-os/cosmic-term/pull/481

[–] daggermoon@lemmy.world 3 points 12 hours ago (1 children)

As someone who likes Rust but dislikes the look of COSMIC, are there plans to allow theming?

[–] markstos@lemmy.world 2 points 10 hours ago

There are already settings to change some of the colors used.

For the terminal in particular there is an option to hide the menu bar, making it look as Foot or Alacritty do.

[–] folaht@lemmy.ml 2 points 14 hours ago

I have a typematrix keyboard.

[–] yesman@lemmy.world 79 points 1 day ago (1 children)

There is an unintended benefit to putting an obstacle between people who don't know how to use the terminal and pasting code into it.

[–] pmk@lemmy.sdf.org 20 points 1 day ago (3 children)

Expanding on this, we could make it so that root must use ed(1) to edit files?

[–] null@slrpnk.net 15 points 1 day ago (1 children)

"Ed is the standard text editor."

[–] phoenixz@lemmy.ca 9 points 22 hours ago (1 children)
[–] AnUnusualRelic@lemmy.world 1 points 7 hours ago

vi is so outdated, we use viii now. You're two versions behind!

load more comments (1 replies)
[–] HelloRoot@lemy.lol 16 points 23 hours ago* (last edited 23 hours ago) (1 children)

I've been using ctrl+c for copy and ctrl+v for paste for over a decade in my linux terminal by remapping the interrupt to ctrl+x.

It's basic ergonomics and user friendliness.

I do it on all my personal devices and servers.

Nothing bad happened in those ~15 years that I've been doing that. What the fuck are you arguing about?

[–] phoenixz@lemmy.ca 8 points 22 hours ago (5 children)

I might actually do that too, but not for ergonomics. I'm just going nuts with sometimes ctrl-c,. sometimes ctrl-shift-c, sometimes ctrl-ins

load more comments (5 replies)
[–] crimsoncobalt@lemmy.world 40 points 1 day ago (11 children)

Control+C is used to kill a process in the terminal and that shouldn't be overwritten. If it is, you'd have to create a totally separate key binding to kill a process. Seems unnecessarily complex when Control+Shift+C works just fine.

[–] wolfinthewoods@lemmy.ml 1 points 3 hours ago

That's what I came here to say. What's the point in making an unnecessarily complex "hack" to circumvent what shift-control-c and v does? I've never had a problem with it. And there's something to be said for not making it super easy to paste text to a terminal, especially from places online...

[–] Overspark@feddit.nl 12 points 23 hours ago (1 children)

Kitty has a setting that makes Ctrl-C copy text, but only if you've selected something. If you haven't it does a regular break. Best of both worlds!

[–] signofzeta@lemmygrad.ml 2 points 16 hours ago (1 children)

Another KiTTY user! Can you share that setting?

[–] Overspark@feddit.nl 1 points 3 hours ago

Had to look it up for you. I use (in kitty.conf):

map ctrl+c copy_and_clear_or_interrupt
map ctrl+v paste_from_clipboard

Obviously you only need the first one for the copy bit but having paste as well is nice.

[–] hallettj@leminal.space 42 points 1 day ago (5 children)

The article doesn't suggest using Control+C. It talks about dedicated copy and paste key codes, and you can program your keyboard to map those codes to whatever keys you like. They suggest Fn+C.

[–] catloaf@lemm.ee 48 points 1 day ago (2 children)
[–] Damage@feddit.it 6 points 11 hours ago

Holy shit can you guys read the article please? It's an existing standard and a dedicated keycode

[–] absGeekNZ@lemmy.nz 1 points 14 hours ago

I think at this point XKCD should be a TLD.

I would join lemmy.xkcd in a heartbeat.

[–] protogen420@lemmy.blahaj.zone 0 points 10 hours ago* (last edited 10 hours ago) (1 children)

what about shift+insert amd ctrl+insert thats literally already there

[–] princessnorah@lemmy.blahaj.zone 2 points 7 hours ago

Because lots of people don't have an insert key?

load more comments (3 replies)
load more comments (8 replies)
[–] ShittyBeatlesFCPres@lemmy.world 19 points 1 day ago (3 children)

Honestly, this is a nice feature of macOS (or at least iTerm 2; I don’t use the official terminal). I know CTRL-C is used to kill processes and we all have that muscle memory but I usually try to change that on my personal Linux installs because I’ve hit it by mistake before.

I used to use CTRL+INSERT for copy and SHIFT+INSERT for paste but there’s usually no insert key on laptops or even small keyboards. It’s probably time to just adapt.

[–] davel@lemmy.ml 13 points 1 day ago

⌘C and ⌘V work in the native MacOS terminal app as well.

[–] kibiz0r@midwest.social 6 points 1 day ago* (last edited 1 day ago) (1 children)

It’s the #1 thing that drives me crazy about Linux.

It seems obvious. You’ve got a Windows/Apple/Super key and a Control key. So you’d think Control would be for control characters and Windows/Apple/Super would be for application things.

I can understand Windows fucking this up, cuz the terminal experience is such a low priority. But Linux?

There’s some projects like Kinto and Toshy which try to fix it, but neither work on NixOS quite yet.

[–] Ferk@lemmy.ml 1 points 7 hours ago* (last edited 6 hours ago)

"Super" is the one modifier key that you can rely on overwriting without interfering with normal app shortcuts, so I'd personally rather prefer if applications don't start trying to use the Super key for their own things.

I have set up Super key shortcuts for all kinds of desktop management operations, opening the launcher/terminal/browser, switching workspaces/windows, closing windows, move/resize, switch tiling mode, audio control, make my package manager install updates, switch between a set of resolutions, activate my password manager, etc.

That said, Copy/Paste is a general/global enough operation that I would not mind having Super+C/V send to the current active app the Copy/Paste keycode (I might do that actually, now that I know that there's a code apps are starting to support!). But I think it should be the desktop environment the one configuring "Super" shortcuts, not the app.

It makes sense for each application to have their own interpretation of what does each control character (or Control shortcut) do. It's not like all control characters have a very reliable meaning to begin with.. I mean, the backspace character (Control+H) was originally meant to move a character backwards without deleting it, but most screen terminals didn't do that. If what you mean is alternate characters from Unicode and so, then the "Alt" key would be more suitable for that. And in ISO keyboards, "AltGr" is a very common way to have combinations that insert alternate symbols.

load more comments (1 replies)
[–] sping@lemmy.sdf.org 5 points 22 hours ago (2 children)

I use a key remapper to give me the readline keys everywhere. Though I've used XKeysnail and xremap and they're both a bit flakey, so if anyone has better recommendations that work on X11 and Wayland, I'm all ears.

load more comments (2 replies)
load more comments
view more: next ›