Tim's 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
24
link
fedilink
  • cross-posted to:
  • [email protected]
108

Linux Users

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days ago
message-square
24
link
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or # to comment.
  • Moonrise2473@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    2 days 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
      1
      ·
      1 day 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
      1
      ·
      2 days ago

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

  • ramius345@sh.itjust.works
    link
    fedilink
    arrow-up
    15
    ·
    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

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days 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 💀

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

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

  • HumanPerson@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    You forgot a couple down arrows for when you overshoot.

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

    CTRL+R

  • lugal@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago
    ls
    
  • Foster Hangdaan@lemmy.hangdaan.com
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

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

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

  • naevaTheRat@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    2 days 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
    1
    ·
    2 days ago

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

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

    history

    !982

  • Kras Mazov@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    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 ⬆️.

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

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

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

      ctrl+r is your friend :)

      • roux [they/them, xe/xem]@hexbear.net
        link
        fedilink
        English
        arrow-up
        8
        ·
        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
          0
          ·
          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.

  • Rom [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    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?

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: [email protected]

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.

  • 229 users / day
  • 408 users / week
  • 1.59K users / month
  • 7.89K users / 6 months
  • 1 local subscriber
  • 38.5K subscribers
  • 1.29K Posts
  • 15.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org