this post was submitted on 25 Aug 2025
1575 points (98.9% liked)

linuxmemes

27371 readers
675 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] serpineslair@lemmy.world 56 points 3 weeks ago (6 children)

    What the fuck!? How am I only learning this now, after years of linux as daily driver?!

    [–] ch00f@lemmy.world 42 points 3 weeks ago (4 children)

    Shit is usually a pain in the ass. The challenge is divining how much of a pain in the ass something has to be that someone else might have made a solution for it.

    I didn't know you could ctrl+shift+c to copy in the terminal until a month ago when my linux n00b wife said "there has to be a better way to do this. I've been right clicking to copy for 10 years.

    [–] Neverclear@lemmy.dbzer0.com 26 points 3 weeks ago (3 children)

    most DE's have a thing where you can paste highlighted text using the middle mouse button

    [–] TheEighthDoctor@lemmy.zip 8 points 3 weeks ago

    It's also independent from the Clipboard so you can do it while keeping your clipboard

    [–] MnemonicBump@lemmy.dbzer0.com 8 points 3 weeks ago (1 children)
    [–] ArsonButCute@lemmy.dbzer0.com 16 points 3 weeks ago (1 children)

    Most mouse wheels can be clicked in place of the middle button, which has been removed from most modern computer mouses.

    [–] Cethin@lemmy.zip 9 points 3 weeks ago

    It's also known as mouse 3 if you need to find it on your mouse or want to bind it to something else.

    [–] Ziglin@lemmy.world 1 points 3 weeks ago (1 children)

    I think that's just an x11 thing that might have been carried over to Wayland or at least works on Hyprland.

    I believe plasma also has it

    [–] Atherel@lemmy.dbzer0.com 22 points 3 weeks ago (1 children)

    And ctrl + shift + v to paste, just in case

    [–] TunaLobster@lemmy.world 6 points 3 weeks ago

    If that doesn't work, Shift + Insert.

    [–] HorreC@lemmy.world 6 points 3 weeks ago (2 children)

    you can also just use ctrl + insert for copy and shift + insert for paste.

    [–] JackbyDev@programming.dev 3 points 3 weeks ago (1 children)

    I used to have shift insert in my muscle memory from Windows, but since my job has used a Mac since 2020 it's fallen out. I never knew Ctrl insert was copy, that's nifty! Another tool in the arsenal. It will be useful when copy in select isn't set and I don't know how to set it up lol.

    [–] HorreC@lemmy.world 1 points 3 weeks ago

    I have always used ctrl/shift insert, I never got used to ctrl c/v. Glad you have new tools!

    [–] Randelung@lemmy.world 3 points 3 weeks ago

    MinGW can do that, too. Useful for Git.

    [–] Aneb@lemmy.world -5 points 3 weeks ago (1 children)

    Ctrl+c to copy, Ctrl+v to paste, Ctrl+z to undo last change (chain it multiple times to reverse time) hopes this helps, ctrl+tab also changes applications on macos and Linux to my knowledge. If you know anymore let's put them together

    [–] ch00f@lemmy.world 3 points 3 weeks ago (1 children)

    You're getting downvotes because Ctrl+C doesn't work in the terminal. That sends the kill command to the currently running application. You need the shift to tell the terminal program that you're trying to copy.

    [–] Aneb@lemmy.world 0 points 3 weeks ago (1 children)

    I use cmd+c cmd+v in my terminal all they time, I do get ctlr+c is the shutdown command. I use a it frequently. I honestly had no clue I was being down voted but I don't care

    [–] ch00f@lemmy.world 4 points 3 weeks ago

    I don't have a command key. I don't use a mac.

    [–] grrgyle@slrpnk.net 11 points 3 weeks ago (1 children)

    Congratulations! I remember where I was when I first learned it (in a noisy server room at the back of a machine shop).

    Now pair it with FZF for fuzzy finding -- it's surprisingly easy to set up, just following any guide. It's insanely useful. I find myself even doing things like typing:

    $ xinput --disable $(xinput --list | grep -i touchpad | grep 'id=[0-9]\+' -o | cut -d= -f2)  # Disable synaptic touchpad trackpad pointer
    

    commands with these like comments on the ends as sort of "tags" so I can ctrl+r search for them later. Yes, I know I could just use a named function, but this is like the step just before that--before I know if I'll be issuing the same command all the time, or just for the next couple weeks. (This one was from when I was resting my notebook on my laptop.)

    [–] oddlyqueer@lemmy.ml 5 points 3 weeks ago

    I like this; I have a lot of commands that I don't use often enough to justify an alias, but still need to rerun all the time. thanks!

    [–] lmmarsano@lemmynsfw.com 8 points 3 weeks ago* (last edited 3 weeks ago)

    As usual, that's documented (we can RTFM).

    Before trying ctrl-s, you may want to disable software flow control: run stty -ixon & add it to your initialization files. Otherwise, you'll pause terminal output. ctrl-q resumes terminal output.

    stty reveals terminal special characters

    $ stty -a
    ⁝
    intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; …
    ⁝
    

    These special characters/keys often perform special functions. To illustrate

    • ctrl-d on empty input typically exits/logs out of interactive terminal applications (including shells)
    • ctrl-u discards input (useful for inputs like password prompts that don't echo input back)
    • ctrl-v inputs next character literally (such as tab)
    [–] Dave@lemmy.nz 6 points 3 weeks ago (2 children)

    Just checking, because I learnt to type before I worked this out, and because surely someone reading doesn't know: press tab. Bash will fill in file names from your current directory.

    E.g. say you have files fred1file, fred2file, jim.

    Type f then press tab, it will fill to "fred". Then press 2 and press tab again and it will fill the full "fred2file".

    Have a play, it works in heaps of situations.

    [–] serpineslair@lemmy.world 2 points 3 weeks ago

    Yeah already use this all the time, had to set it up on arch to work with sudo tho.

    [–] bobo@lemmy.world 2 points 3 weeks ago* (last edited 3 weeks ago)

    Bash will also do autocomplete for cli programs that have autocomplete functionality. Try typing:

    git r<tab><tab>

    you'll see options for all the git commands that start with r. Often cli commands will have autocompletion for long (double dash) options.

    If you want to see all the commands that have auto complete available, look in:

    /usr/share/bash-completion/completions/

    There's a few other locations they can live, notably:

    /etc/bash_completion.d/ ~/.bash_completion ~/.local/share/bash-completion/completions/

    I don't know if there are more or if there is any variation per distro.

    You can also write your own bash completions. They can get pretty smart and context sensitive.

    Pretty good beginning tutorial:

    https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial

    edit - I should've mentioned that this isn't native to bash, it requires installation of bash-completion. But bash-completion is installed by default in many distros.

    [–] uranibaba@lemmy.world 4 points 3 weeks ago

    Use mcfly and it will be even better.