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

linuxmemes

27012 readers
1205 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
     
    (page 2) 50 comments
    sorted by: hot top controversial new old
    [–] Semi_Hemi_Demigod@lemmy.world 17 points 4 days ago (3 children)

    history | grep ‘part of the command I remember’

    [–] FuyuhikoDate@feddit.org 8 points 4 days ago

    Ha... That as if I would ever remember the part of the tool instead of the fact what it did 🤣

    load more comments (2 replies)
    [–] theacharnian@lemmy.ca 13 points 3 days ago (12 children)
    [–] surewhynotlem@lemmy.world 6 points 3 days ago (3 children)

    Ppsshh. Not lazy enough. Create that in a script and call it "hgrep" and drop it into path.

    load more comments (3 replies)
    load more comments (10 replies)
    [–] bridgeenjoyer@sh.itjust.works 4 points 3 days ago (2 children)

    Nah just save all your commands in a text file on the desktop then make an alias to open it in nano so you just have to type "com". Works for dumb ol me

    load more comments (2 replies)
    [–] zod000@lemmy.dbzer0.com 5 points 3 days ago

    It's too early to call me out like that.

    [–] Dave@lemmy.nz 8 points 3 days ago (4 children)

    Everyone sharing their Ctrl+R tips, here's my Control+R question:

    How does scope work? Some command history only seems to exist in certain tabs.

    Also sometimes I Ctrl+R in a tab then the command is there but I forget I need a different one first, so I ctrl+c but the next time I search for that original command somehow it doesn't exist anymore.

    I'm using the default terminal on Nobara (fedora based).

    load more comments (4 replies)
    [–] GreenKnight23@lemmy.world 7 points 3 days ago

    set -o vi

    ESC k /command

    or just grep history...

    [–] Yeahboy92@lemmy.world 4 points 3 days ago

    Atuin Magic Shell History is pretty good.

    [–] highball@lemmy.world 11 points 4 days ago (2 children)
    load more comments (2 replies)
    [–] resipsaloquitur@lemmy.world 10 points 4 days ago
    [–] FauxLiving@lemmy.world 9 points 4 days ago

    https://junegunn.github.io/fzf/shell-integration/

    fzf is a nice tool for this and other things

    [–] neclimdul@lemmy.world 3 points 3 days ago (1 children)

    I see so many people loving on atuin in the comments but I just tried it and don't get it. It seems so much worse than the built in search. I guess it's not for me.

    [–] merc@sh.itjust.works 4 points 3 days ago

    I've been using it for a few months, and so far it's not as good as just regular old command history. I think any benefit might be for really, really old commands, or commands happening in a specific location. So, I'm going to keep using it to see if it helps then. But, so far it's a massive downgrade.

    [–] cm0002@piefed.world 8 points 4 days ago

    Report post

    Report reason: ⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️"There it is" I'm in this picture and I don't like it

    load more comments
    view more: ‹ prev next ›