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

Linux Users

lemmy.ml

message-square
20
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
1

Linux Users

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months ago
message-square
20
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or register to comment.
  • lugal@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago
    ls
    
  • Moonrise2473@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 months 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
      0
      ·
      2 months 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.

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

    CTRL+R

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

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

  • ramius345@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Ctrl-r was right there.

    • calliope@retrolemmy.com
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 months ago

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

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

  • Foster Hangdaan@lemmy.hangdaan.com
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

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

  • naevaTheRat@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    2 months 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 !$?

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

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

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

      ctrl+r is your friend :)

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

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

    • naevaTheRat@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Just make some aliases and scripts you lunatic.

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

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

  • Kras Mazov@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months 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
    0
    ·
    2 months 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?

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

  • krash@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

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

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.

  • 9 users / day
  • 63 users / week
  • 219 users / month
  • 342 users / 6 months
  • 0 local subscribers
  • 39K subscribers
  • 218 Posts
  • 489 Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org