lemmy.dudeami.win
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 year ago

Up up and away we go

sh.itjust.works

message-square
34
fedilink
380

Up up and away we go

sh.itjust.works

alphacyberranger@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 year ago
message-square
34
fedilink
  • superkret@feddit.org
    link
    fedilink
    arrow-up
    52
    ·
    1 year ago

    • Fillicia@sh.itjust.works
      link
      fedilink
      arrow-up
      35
      ·
      1 year ago

      I really like this comic. Just in case someone didn’t know in Linux you can:

      -Ctrl + r to search previous commands

      Or

      -type history and precede the command number by an exclamation (!) to repeat the command (I.e. “!13”)

      • Aurenkin@sh.itjust.works
        link
        fedilink
        arrow-up
        21
        ·
        edit-2
        1 year ago

        Or just !! for the last command. Particularly helpful if you forgot to prefix it with sudo you can run sudo !!

        • Redderthanmisty@lemmygrad.ml
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Learn something new everyday

      • vvv@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        I highly recommend installing fzf, and its shell integration. Makes your Ctrl + r magnitudes more pleasant to use!

      • BlackPenguins@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        What. Da fuck. This always existed?!

        • Trashboat@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          8
          ·
          1 year ago

          It’s probably from within the last 30 years or so

          • BlackPenguins@lemmy.world
            link
            fedilink
            arrow-up
            6
            ·
            1 year ago

            Oh good as long as it’s only a recent update.

      • Tetsuo@jlai.lu
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Also if you put “sensitive” information in your history by mistake you can use “history -d <line#>” to remove it.

        Unfortunately I had to use this command too many times.

      • zarkanian@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        Fish shell does this automatically. It’s one of the reasons I love it. You can auto-complete based on your command history.

        • Fillicia@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          I’m personlly a zsh+oh-my-zsh person which has the same type of auto complete option.

          My only regret is that something broke the thefuck plugin on my pc and now swearing at my screen doesn’t fix my mistakes.

      • fmstrat@lemmy.nowsci.com
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Or control R, start typing a bit, control r again.

      • oxomoxo@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        1 year ago

        This works in Powershell as well, even on Windows…

      • DefederateLemmyMl@feddit.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Ctrl + r to search previous commands

        That’s a readline thing by the way, so it doesn’t just work in bash but also works with other cli applications that are compiled with readline support, for example virsh, psql, fdisk, …

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.03K users / day
  • 4.27K users / week
  • 7.82K users / month
  • 19.9K users / 6 months
  • 1 local subscriber
  • 26.4K subscribers
  • 1.6K Posts
  • 52.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org