Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days ago

Linux Users

lemmy.ml

message-square
27
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
200

Linux Users

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days ago
message-square
27
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or # to comment.
  • HumanPerson@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 day ago

    You forgot a couple down arrows for when you overshoot.

  • Moonrise2473@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    Introducing: fish

    And then you just need to remember the first letters of the previously typed command

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      21 hours ago

      Yup, I started using fish a while back and autocomplete is what kept me on it. The best part is that it’s contextual based on the folder you’re in.

    • Oriel Jutty :hhHHHAAAH:@infosec.exchange
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Look up history-search-backward in your favorite bash/readline manual.

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    The command you want is in the buffered history of a still running terminal that’s doing something you don’t want to close 💀

  • تحريرها كلها ممكن@lemmy.ml
    link
    fedilink
    arrow-up
    19
    ·
    2 days ago

    CTRL+R

    • Fossifoo [comrade/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Or if you are not sure what it was at all: history

  • naevaTheRat@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    Some of you haven’t read the bash manual and it shows.

    Blow your mind to know about bang patterns. You’ve used !! but do you know about !$?

  • krash@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    If you haven’t, try McFly - is a much better backwards / history search in the shell.

  • ramius345@sh.itjust.works
    link
    fedilink
    arrow-up
    16
    ·
    2 days ago

    Ctrl-r was right there.

    • calliope@retrolemmy.com
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Or sometimes history if I can’t remember at all.

      Oh my bad, two other people said that too I was just excited

  • Diurnambu1e [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    After a time ypu look into extending the history too… 500line by default is far too short for all the awesome commands

  • roux [they/them, xe/xem]@hexbear.net
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    Me with git pushes: up up up, enter x3. Like 6 times a day.

    • naevaTheRat@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      Just make some aliases and scripts you lunatic.

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      8
      ·
      2 days ago

      ctrl+r is your friend :)

      • roux [they/them, xe/xem]@hexbear.net
        link
        fedilink
        English
        arrow-up
        11
        ·
        2 days ago

        Not me using Linux for 15 years and just learning you can search through previous commands…

        • isame [he/him]@hexbear.net
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          I hope I’m not blowing your mind when I tell you that you can grep .bash_history?

          • roux [they/them, xe/xem]@hexbear.net
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            Easy there wizard. In my defense I don’t hang out in a terminal all that much anymore.

      • Jolteon@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        With only three up presses, it would probably be faster than ctrl+r

  • Foster HangdaanA
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    It’s either this or history | grep 'some-command'.

  • Kras Mazov@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    Don’t call me out like that lol. Also Atuin is pretty cool for this as you are showed a list of the commands used when you press ⬆️.

  • Rom [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    Why would I type out this command that’s six whole keystrokes long when I can save time by pressing ‘up’ twenty times instead?

  • lugal@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago
    ls
    
  • highduc@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

    If you’re in this picture try using fzf and backwards search, much more effective, hell even without fzf.

  • Nate@piefed.alphapuggle.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    history

    !982

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 256 users / day
  • 613 users / week
  • 1.75K users / month
  • 7.93K users / 6 months
  • 1 local subscriber
  • 38.5K subscribers
  • 872 Posts
  • 4.48K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org