Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前

Linux Users

lemmy.ml

message-square
150
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.28K

Linux Users

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前
message-square
150
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • ezekielmudd@reddthat.com
    link
    fedilink
    arrow-up
    12
    ·
    3 个月前

    Or, just type the command “history”, find the index number of the desired command, then type “! <index number>”, then <enter>.

    • Frezik@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      3 个月前

      That’s way more mental effort than pressing up a bunch of times.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      3 个月前

      or Ctrl+R then search? I don’t know why some people still bother with history tbh.

      • merc@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        3 个月前

        Because you can pipe history to grep.

        • snowe@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          3 个月前

          with fzf you get better grep with fuzzy search

      • Sabata@ani.social
        link
        fedilink
        arrow-up
        2
        ·
        3 个月前

        This is going to save me so much time pressing the up arrow.

    • irish_link@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 个月前

      Holy cow!! I didn’t know that. I have been using history > history.txt to find “that one command for that one thing” I only need once every other month or so. Thanks, now I can just do that.

    • Not a newt@piefed.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 个月前

      Ctrl-R if you know part of the command.

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.65K users / day
  • 4.23K users / week
  • 8.52K users / month
  • 18K users / 6 months
  • 1 local subscriber
  • 28K subscribers
  • 2K Posts
  • 76K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org