this post was submitted on 26 Oct 2023
103 points (94.0% liked)

Linux

47369 readers
877 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 5 years ago
MODERATORS
 

Beginning Linux user: "Ctrl-Z is undo, right?"

Advanced Linux user: "Ctrl-Z dammit fg"

top 26 comments
sorted by: hot top controversial new old
[–] ExLisper@linux.community 34 points 11 months ago (1 children)
[–] federalreverse@feddit.de 24 points 11 months ago (2 children)

Ctrl-Shift-C works in many GUI emulators.

[–] petertree@lemmy.world 36 points 11 months ago (4 children)

And then you do it in a web browser and open developer mode

[–] danhab99@programming.dev 8 points 11 months ago

Thank you for letting me know I'm not the only one

[–] Croquette@sh.itjust.works 5 points 11 months ago

It sucks haha. All the time when switching between a terminal and a browser.

[–] Astaroth@lemm.ee 5 points 11 months ago

Happens to me all the time 😅

And since I'm already holding down ctrl I've formed a habit of using ctrl + shift + v even though just regular ctrl + v works. Although for me it's mostly positive as I usually just want the text without formatting anyway.

[–] 8ace40@programming.dev 4 points 11 months ago

You do it in teams and call your workmate!

[–] possiblylinux127@lemmy.zip 0 points 11 months ago

Its called a standard

[–] tal@lemmy.today 20 points 11 months ago* (last edited 11 months ago) (5 children)

In emacs, C-_ is undo. If you perform a non-undo operation, then undo it, then do a non-undo operation, then two undos will undo the undo.

Unless you're using one of emacs's alternate undo systems, like undo-fu, undo-tree, or vundo, which may have their own ways of doing things.

I use undo-tree, and with the default bindings there, there's an undo on C-_ and a redo on M-_; undo doesn't undo undos there.

[–] Orbituary@lemmy.world 13 points 11 months ago* (last edited 11 months ago) (1 children)

Omg. I've hated emacs for 30+ years and you just made it worse.

[–] sping@lemmy.sdf.org 1 points 11 months ago (1 children)

Bizarre that you've hated it for 30 years yet didn't know one of the earliest things users learn about it (that actually is fine to use). Perhaps you should examine why you hate something you're almost completely ignorant of.

Though most jokes and criticisms about Emacs betray complete ignorance of it, so you're hardly unusual.

[–] Orbituary@lemmy.world 1 points 11 months ago (1 children)

I don't need all the overhead. Vi has always worked for me. It's ubiquitous. I'm fast with it. It suits my needs fully.

[–] sping@lemmy.sdf.org 2 points 11 months ago (1 children)

You must truly loathe vscode etc then if you hate emacs for overhead. I can't really see why you should hate something just because it uses a slightly less small amount of resources. I don't even know how you'd notice on any machine from the last 20 years.

[–] Orbituary@lemmy.world 1 points 11 months ago* (last edited 11 months ago) (1 children)

This is my preference. Is that not OK?

[–] sping@lemmy.sdf.org 0 points 11 months ago

Seems pretty reasonable that if you want to tell the world you hate something, you might want the world to understand why you hate it, or else perhaps we might assume it's not a reasoned position. That's certainly the conclusion I'm coming to.

[–] yukijoou@lemmy.blahaj.zone 8 points 11 months ago (1 children)
[–] tal@lemmy.today 4 points 11 months ago
[–] Pantherina@feddit.de 3 points 11 months ago

Sounds perfectly usable hahaha

[–] iHUNTcriminals@lemm.ee 3 points 11 months ago

K, I'm just going to watch inception instead of going down the undo wormhole.

[–] Chewy7324@discuss.tchncs.de 2 points 11 months ago

Undo-tree is awesome but it's sadly not implemented in most editors.

[–] cadekat@pawb.social 16 points 11 months ago (2 children)

Advanced advanced Linux user: "Ctrl+S shit what's the unsuspend button"

[–] tal@lemmy.today 13 points 11 months ago* (last edited 11 months ago) (1 children)

Control-Q

Or you can disable software flow control in cooked mode with stty -ixon and then Control-S won't suspend flow.

EDIT: If you use screen or tmux, I suppose that you probably don't need software flow control anyway from a UI standpoint, because both will suspend flow if you enter their copy mode, which acts similarly.

EDIT2: I suppose that the utility of software flow control is probably rather reduced today from its original role. At one point in time, the rates at which data could be sent to the terminal was low enough that it wasn't a particularly large issue to suspend it while interesting information was still on the screen. I certainly remember some relatively-slow terminal systems, especially with control sequences mixed in; BBSes took advantage of the fact that it took time for ANSI art to be transmitted at 9600 baud modem connections or so to make the display of an image something of an animated, vertically-scrolling banner; you'd have banners that were rather vertically-larger than the typical display, but moved slowly-enough to watch as they scrolled by. But today, a large chunk of software can throw text at the terminal so quickly that, unless its performance is otherwise-constrained, one has little chance of stopping flow while the information one wants is visible. Only really useful if the software naturally has stops at useful places and one can suspend flow there, and I don't know what percentage of cases that comes up with. Maybe there's an argument to default to not having software flow control any more.

[–] vector_zero@lemmy.world 2 points 11 months ago

Bonus when you disable software flow control: In addition to Ctrl+r to reverse search through commands, you can search forward via Ctrl+s

[–] dan@upvote.au 1 points 11 months ago

Ctrl+S works in Nano now.

[–] GammaGames@beehaw.org 12 points 11 months ago

More like “Ctrl+Z google how to unbackground linux

[–] luthis@lemmy.nz 2 points 11 months ago

I feel called out.