SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x4E4F@sh.itjust.works to linuxmemes@lemmy.world · 2 years ago

Linux terminal users be like

sh.itjust.works

message-square
101
fedilink
575

Linux terminal users be like

sh.itjust.works

0x4E4F@sh.itjust.works to linuxmemes@lemmy.world · 2 years ago
message-square
101
fedilink
alert-triangle
You must log in or register to comment.
  • not_neno@lemmy.world
    link
    fedilink
    arrow-up
    64
    ·
    2 years ago

    ctrl + r gang

    • jrandiny@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      You can also install https://github.com/dvorka/hstr to supercharge your ctrl+r

      • Skuldugery@feddit.de
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        I can recommend fzf since it also supports searching the current directory

      • tlf@feddit.de
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        This is it, my first saved comment on lemmy

    • Doolbs@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      Holy Crap. I have gotten into the arrow up mode. Then I went to History.

      But, but, but ctrl + r. Holy crap.

      Thank you kind sir or madam.

      • nous@programming.dev
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        If you enjoy that, then let me introduce you you fzf - a fuzzy finder that has support for replacing ctrl + r in shells with fuzzy matching. Among other uses.

        https://github.com/junegunn/fzf#key-bindings-for-command-line

      • not_neno@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Man I over use it at work - even when sitting in front of a pwsh prompt

        • raspberry_confetti@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          pwsh with nushell is pretty good

    • frank@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Is there a MacOS versión of this? Asking for a friend.

      • nous@programming.dev
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        It’s the same, ctrl + r. It is a bash/shell thing so works on any os that uses bash or similar shells. Note, it is not the command key, but ctrl, unlike a lot of other shortcuts on macos.

      • kentaromiura@feddit.it
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Finally the ls command!

    • Linssiili@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Fish gang arise (no need for ctrl+r, just press up)

  • RomanRoy@lemmy.world
    link
    fedilink
    arrow-up
    30
    ·
    2 years ago

    Ctrl R > start typing

    You’re welcome to have your life changed

    • Contend6248@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      What the actual… Thanks

  • kentaromiura@feddit.it
    link
    fedilink
    arrow-up
    24
    ·
    2 years ago

    Finally the ls command!

  • Joe B@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

    ctrl + r then enter phrase

    • reblochon@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      With fzf!

      • Joe B@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I haven’t been on linux in a while but i remember using a file manager that had fuzzy finder and it was nice. I miss linux actually. oh well!

  • jg1i@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

    Bruh. Ctrl-r

    • ianhclark510@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      you’re amazing, this is going to change how I use fish

    • 2ez@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Or the history substring search plugin for zsh showing inline history as you type, like fish.

    • PlasticExistence@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      For real. Alternatively use alias to reassign a command to something shorter if it’s one you’re always searching for later. I use ‘update’ as an alias for ‘apt update && apt upgrade -y && apt autoremove && apt autoclean’

  • MinusPi@lemmy.fmhy.ml
    link
    fedilink
    arrow-up
    15
    ·
    2 years ago

    Up up up up up up up up up oh wait down

    • lukalot@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      you allllways overshoot

      • FarLine99@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Based

  • Ken Oh@lemm.ee
    link
    fedilink
    arrow-up
    8
    ·
    2 years ago

    ctrl+p gang RISE UP

  • gnuplusmatt@aussie.zone
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    ~/.bash_history is where my documentation lives

    • b3nsn0w@pricefield.org
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      yeah, the other day i was supposed to remove a restriction from a router that was some custom thing built on a raspberry pi. i logged in, started messing around, trying to figure out the system, and of course i looked at bash_history because why not, i’m unfamiliar with the setup so it seemed like a good place to start. up until i found some commands editing it. so i’m like

      $ export HISTFILE=/dev/null # alright, two can play this game
      

      it ended up being a simply cron job that runs a script that starts and stops hostapd every once in a while. i didn’t disable the cron job, i just commented out a critical line from the stop script. happy debugging to the sysadmin, lol

  • Norgur@discuss.tchncs.de
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    cat /var/www/vhosts.d/l[tab]o[tab]l[tab]a[tab]…

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      lola 🤨?

      • Norgur@discuss.tchncs.de
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        cat /var/www/vhosts.d/lolanotherfilehasthesamenamebutwith1.conf

        • 0x4E4F@sh.itjust.worksOP
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Oh 🤣🤣🤣

  • someacnt_@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Woah. Quality of meme in this site amazes me.

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 years ago

      It’s more or less like on reddit, but less users.

      • raspberry_confetti@sh.itjust.works
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        *fewer

        • unstable_confusion@lemmy.fmhy.ml
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          2 years ago

          It’s more or fewer like on Reddit, but with less users.

  • drcouzelis@lemmy.zip
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Time to up your game with Ctrl + R reverse search! 🤓

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      Oh, and Ctrl + Shift + R brings you back in the search, niiiiice.

      Thank you kind stranger 👍 ☺️.

      • bronzing@lemmy.fmhy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Look up fzf for luxury treatment

  • anthimatter@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    Guilty. Even knowing better ways laziness wins. Skyrim console too.

  • snake@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    cat .bash_history | grep keyword

    But yeah pretty much.

    • 1337@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      deleted by creator

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      You know you don’t actually have to do cat 😂. But yeah, I know, I do it as well 🤣.

    • another_kbin_addict@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Yeah, I grep on history and then !<number> to execute the line I want

  • azvasKvklenko@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    And the command is something like ls -l 👍

    • PCChipsM922U@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      I usually use ls -hal.

      • azvasKvklenko@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        ls -lah is what I do 🙌

  • CriticalMiss@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago
    1. vim ~/.inputrc
    2. Paste the following:

    "\e[A": history-search-backward "\e[B": history-search-forward

    Thank me later

    • GuyWithLag@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Man, I’ve been on unix systems since, oh, 1994, but I’ve never messed with my .inputrc … may need to take the dive…

    • TheGeneral@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Ok this is actually great. Is there a way to make it so when you down arrow again it will clear the cmd line (or take it back to the prefix)?

      Like “py” -> up -> down -> result is “py”

      Currently it would show my last python command (or whatever matches).

    • overtinker@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Hey! Sorry just getting into Linux, I love learning about cool ways of doing things more efficiently. What does this do exactly? I’ve noticed others mentioning CTRL+R and I am not sure what that means either. Thank you!

      • CriticalMiss@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 years ago

        Basically, while ctrl+r is nice, this is how I got used to use my system. What this does is enable search for when you press arrow up. If you type nothing then it’s default behavior but if you type “ssh” and then start pressing arrow up it will bring up the previous command that had the word ssh in. It’s worth it for someone who constantly forgets ctrl+r exists

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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 figures

We 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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 894 users / day
  • 4.06K users / week
  • 9.47K users / month
  • 19.1K users / 6 months
  • 282 local subscribers
  • 25K subscribers
  • 1.64K Posts
  • 94.2K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org