unreachable.cloud
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 6 hours ago

Noice

lemmy.ml

message-square
42
fedilink
191

Noice

lemmy.ml

obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 6 hours ago
message-square
42
fedilink
alert-triangle
You must log in or register to comment.
  • printf("%s", name);@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    36
    ·
    3 hours ago

    MaNLkfuwl4LB6ck.jpg

    • SkaveRat@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      1 hour ago

      Ctrl A is easier to reach than the home key

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 hour ago

      Always amused me that sudo !! is actually more keypresses (at least on keyboards where typing ! requires holding Shift).

      • printf("%s", name);@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        56 minutes ago

        You just blew my mind. sudo [space] [shift] !! [enter] (4+1+1+1+1+1) is one keypress longer than ↑ + home + sudo + space + enter (1+1+4+1+1). In your face, universe.

      • Nilz@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        1 hour ago

        I use zsh with the sudo plugin. Double tap esc and your current or last command will be prefixed with sudo.

        • printf("%s", name);@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          57 minutes ago

          I don’t dabble in black magic. /j

          It’s actually pretty neat.

  • Albbi@piefed.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 hours ago

    I know alt +. inserts the last argument of previous commands. There must be a good list of alt commands somewhere because they’re pretty damn useful.

  • ikidd@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    43
    ·
    4 hours ago

    alias fuck="sudo !!"

    • Nilz@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      Wait, you don’t have The Fuck installed?

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    82
    ·
    edit-2
    5 hours ago

    You can also just do a sudo !! the !! is a shorthand for whatever you tried to run previously.

    • Sarcasmo220@lemmy.ml
      link
      fedilink
      arrow-up
      13
      ·
      3 hours ago

      I learned something new today!

    • juipeltje@lemmy.world
      link
      fedilink
      arrow-up
      33
      ·
      4 hours ago

      Was about to say, why would you copy anything when using sudo !! lol

    • devfuuu@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      4 hours ago

      Not all shells support that.

      I use fish btw.

      • furry toaster@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        9
        ·
        4 hours ago

        I made my own !!

        • ArchAengelus@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          9
          ·
          3 hours ago

          I know what you meant (I have one for fish as well), but I chucked because you looked very enthusiastic about it!

          The fish function for !! is super useful though

      • NannerBanner@literature.cafe
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        I don’t even know what I use anymore. My distro seems to keep changing it when I reinstall.

        • unbuckled_easily933@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 hour ago
          echo $SHELL
          
    • adeoxymus@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      5 hours ago

      I completely forgot about this one!

  • RedstoneValley@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    4 hours ago

    Or press Ctrl-S and take a nice walk outside

  • insufferableninja@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    18
    ·
    6 hours ago

    Top text should maybe say copying by, rather than copying then? Since sudo !! will automatically copy the previous command with sudo in front of it, so there’s no manual copying involved

    • obnomus@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      5 hours ago

      Yeah I remembered that after uploading the meme.

  • TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    4 hours ago

    Cannot find any reference online. What is this supposed to do? Not at a PC right now.

    • yeehaw@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      !! Just puts in your last typed command. So if you typed rm -rf /etc, you wouldn’t have permission. But if you typed in sudo !! Right after, then you’re really fucked.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        4 hours ago

        Ah I wasn’t clear – those, I knew. It’s alt+S I don’t know. I’m at my machine now and it doesn’t seem to do anything on Pop_OS.

        • clif@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          5 minutes ago

          Seem to be a fish shell thing.

          I tested on my good ole trusty bash and got nothing so I went searching.

          EDIT: Clarification : alt+s seems to be a fish shell thing.

        • yeehaw@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          2 hours ago

          Ya I haven’t tried alt s. Never heard of it before either.

  • eco_game@discuss.tchncs.de
    link
    fedilink
    arrow-up
    7
    ·
    6 hours ago

    On my Terminal that just makes it so I can’t type anymore, I feel like I’m doing something wrong…

    My solution to the problem is CTRL+U, type sudo, CTRL+Y.

    • dracc@discuss.tchncs.de
      link
      fedilink
      arrow-up
      7
      ·
      5 hours ago

      Ctrl + S freezes your shell yes. But Alt + S?

      • eco_game@discuss.tchncs.de
        link
        fedilink
        arrow-up
        4
        ·
        4 hours ago

        Ah indeed, ALT+S does nothing. I must have pressed both before realizing it was frozen.

    • insufferableninja@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      9
      ·
      6 hours ago

      If you hit ctrl-s, ctrl-q will unfreeze

      • qprimed@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        4 hours ago

        x👏off👏… x👏on👏… x👏off👏, x👏on👏…flowcontrol.

      • eco_game@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        Interesting, why is that? Like what feature is that?

        • Ephera@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 hour ago

          Same reason there’s a ScrollLock key on keyboards. Didn’t always have scrollbars and if the application prints more than you can read, you want to pause that…

        • neclimdul@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          Short answer, terminals are built on the same technology as physical terminals from the 60s and 70s when controlling the flow of data from the server was a more useful feature.

        • insufferableninja@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 hours ago

          It’s part of the terminal emulator flow control

    • Dionysus@leminal.space
      link
      fedilink
      arrow-up
      8
      ·
      6 hours ago

      Need to use the fish shell instead of the others for this to work. (May be a way to enable it in other shells but I’m not sure how)

  • muhyb@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    Is this a shell thing or a terminal thing? It doesn’t work for me on foot.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      @[email protected] found out that it’s a feature in fish shell, which I can confirm.

      • muhyb@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        27 minutes ago

        Thanks. I think I should check out fish soon, I keep seeing it a lot lately and it seems to be made for lazy people like me. :)

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      Not sure, I assumed universal because you use it with your history. Type history, see the number next to the command, do a !nnn and it will run that command from history

      • muhyb@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        3 hours ago

        Oh, !! definitely works. I meant Alt+S shortcut.

        • BCsven@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          1 hour ago

          Oh, LOL

linuxmemes@lemmy.world

linuxmemes@lemmy.world

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]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

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

  • 832 users / day
  • 1.31K users / week
  • 6.82K users / month
  • 17.5K users / 6 months
  • 1 local subscriber
  • 31.5K subscribers
  • 2.26K Posts
  • 114K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org