StuartLemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
abobla@lemm.ee to linuxmemes@lemmy.world · 5 months ago

pro tip

lemm.ee

message-square
110
fedilink
269

pro tip

lemm.ee

abobla@lemm.ee to linuxmemes@lemmy.world · 5 months ago
message-square
110
fedilink
alert-triangle
You must log in or register to comment.
  • Lovable Sidekick@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    arrow-down
    1
    ·
    edit-2
    5 months ago

    side note: My all-time favorite linux utility is “fuck”. When you make a mistake and get a command line error, you type the word fuck and it looks at what you previously typed and the error message, and tries to figure out your mistake and what you should have typed instead. Then it types that in for you. If it’s correct all you have to do is hit Enter. Or you can edit first, but it’s usually right. Amazing tool, and doesn’t even use AI, just a list of common errors. It’s been around for years and years. Its mere existence really captures the whole culture of linux IMO.

    • Rooty@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      5 months ago

      Its name is dangerously close to fsck. Can you fuck fsck?

      • Lovable Sidekick@lemmy.world
        link
        fedilink
        English
        arrow-up
        10
        ·
        5 months ago

        That’s the beauty of it - you can!

    • milicent_bystandr@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      5 months ago

      See, I couldn’t bring myself to type that; I think I’d have to alias it to ‘bother’.

      • Lovable Sidekick@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 months ago

  • Willem@kutsuya.dev
    link
    fedilink
    arrow-up
    25
    ·
    5 months ago

    please killall

    I see…

    • katy ✨@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      Make sure to combine it with Disallow /harm/to/humans

  • LeroyJenkins@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    5 months ago

    alias alias='alias'

    • abobla@lemm.eeOP
      link
      fedilink
      arrow-up
      17
      ·
      5 months ago

      I’m scared of you

  • call_me_xale@lemmy.zip
    link
    fedilink
    arrow-up
    21
    ·
    5 months ago

    alias go-go-gadget=sudo

    $ go-go-gadget apt update

    • katy ✨@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      11
      ·
      5 months ago

      alias bridge-to-engineering=sudo

      • obsolete@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        5 months ago

        alias computer=sudo

      • xia@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 months ago
        $ scotty-i-need-more cowbell
        
    • MyFriendGodzilla@lemmy.world
      link
      fedilink
      Esperanto
      arrow-up
      1
      ·
      5 months ago

      I love this haha

  • cm0002@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    5 months ago

    Or do the opposite for…relief

    Fucking mv doc doc1

    Fucking shutdown

    • thefartographer@lemm.ee
      link
      fedilink
      arrow-up
      14
      ·
      5 months ago

      fucking touch my-doc

      • Kalcifer@sh.itjust.works
        link
        fedilink
        arrow-up
        14
        ·
        5 months ago

        please touch my-doc 🥺👉👈

      • cm0002@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        5 months ago

        ( ͡° ͜ʖ ͡°)

      • MonkeyTown@midwest.social
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        5 months ago

        I thought for sure, for sure this was bullshit. For sure Linux doesn’t have a touch command. What could it possibly do.?

        Changing timestamps and creating empty files…

        Of course, that makes so much sense. 🤔

        • double_quack@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          5 months ago

          It does make sense! When you modify a file, you do “things” on it, you write it. So the minimum you can possibly do to a file to modify it, is “to poke it”: to touch it.

          • MonkeyTown@midwest.social
            link
            fedilink
            English
            arrow-up
            4
            ·
            5 months ago

            I mean I’m sure that’s the logic or something but…

            Man it just feels wrong. Like the sonic hedgehog gene feels wrong. You know?

            • double_quack@lemm.ee
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 months ago

              Hahahha, I just learnt about that gene a little while ago and thought the same: that’s an stupid name for a gene. How would you name them? (the gene and the command)

              • MonkeyTown@midwest.social
                link
                fedilink
                English
                arrow-up
                2
                ·
                5 months ago

                Imagine being a doctor telling a couple their fetus died because of a sonic hedgehog gene mutation, tho. (This does happen)

                Like, it won’t matter in another few hundred years, but culture is difficult right now.

                Makes me wonder if the romans did meme shit like that. They graffiti shitposted and whatever so…

                Luckily nobody asks me what I would name shit because my pets are testament to my complete lack of creativity. 😊

                • double_quack@lemm.ee
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 months ago

                  I would call the gene fingerer

      • brbposting@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 months ago

        • SkunkWorkz@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          5 months ago

          Ah Donglegate, good times. Even funnier that the guy who got fired because of this lady’s tweet sided with her like a meek little bitch.

    • Drew Belloc@ani.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 months ago

      Fuck will always be my alias to run sudo with the last command

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 months ago

        There’s a project that automatically corrects common errors with your last command as well with the same name.

        • double_quack@lemm.ee
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 months ago

          It sounds fun and “magic” but it is hella scary to blindly run some “fixed” command

          • henfredemars@infosec.pub
            link
            fedilink
            English
            arrow-up
            4
            ·
            5 months ago

            I believe it does take confirmation via the ENTER key.

            • cactopuses@lemm.ee
              link
              fedilink
              arrow-up
              3
              ·
              5 months ago

              It does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands

      • JustAnotherKay@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        5 months ago

        Between the fuck utility and this alias idea, when I set up my next box I’m absolutely aliasing “fuck off” for sudo the last command and “please” for sudo itself

      • kibiz0r@midwest.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 months ago

        Shorthand that works anywhere: sudo !!

      • Psythik@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        “Fucking” would be funnier and more grammatically correct.

      • A_Union_of_Kobolds@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        Yup I’m stealing that lol

    • Abnorc@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      I wonder if you could make it sass you every so often to complete the effect.

      Fucking shutdown

      Chill my man. I’m on it.

  • blackstrat@lemmy.fwgx.uk
    link
    fedilink
    arrow-up
    21
    ·
    5 months ago

    I aint typing out ‘please’, I will compromise on alias plz='sudo'

    • Eyedust@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      14
      ·
      5 months ago
      alias ty='exit'
      
    • abobla@lemm.eeOP
      link
      fedilink
      arrow-up
      12
      ·
      5 months ago

      shit, that’s a radical move

  • gi1242@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    5 months ago

    please remove the French language pack

    please rm -fr /*
    
    • double_quack@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      ·
      5 months ago

      Some people just wanna see the world burn

    • Zron@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      Now a days you have add —no-preserve root after the laggy French pack to fully remove it.

      • okr765@lemmy.okr765.com
        link
        fedilink
        English
        arrow-up
        6
        ·
        5 months ago

        Not with the asterisk! The shell automatically expands the asterisk before sending the args to rm, removing every French language pack in your root directory.

    • heartbreaker@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      5 months ago

      For people that don’t get the joke: this messes up your system

      • ivanafterall ☑️@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        edit-2
        5 months ago

        If you’re out of the loop: this is part of the joke tricking people into dedicating precious hard drive space to an unnecessary language pack.

  • Ziglin (it/they)@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    ·
    5 months ago

    I might actually do this, it seems nice.

    • katy ✨@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      11
      ·
      5 months ago

      suddenly makes the xkcd much more wholesome too

    • milicent_bystandr@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      Likewise

  • ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    5 months ago

    please apt install clang

    User isn't in polite boy list. This incident will be reported.

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    5 months ago

    please rm -rf /

  • Amon@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    5 months ago

  • Max@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    5 months ago

    please shutdown

    THIS INCIDENT WILL BE REPORTED.

  • jrgn@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    5 months ago

    alias yabbadabbasudo=sudo

    It’s impractical and I often forget that I have it. But the times I remember I laugh a bit

  • hasecilu@lemm.ee
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    5 months ago

    I prefer to use kudasai … but as some may already know, it should be at the end of the sentence command 😅, so I added a custom hook to my ZSH config to make it run commands as pacman -Syu kudasai.

    Essentially you can add any type of string matching in the function. Add this to the end of your .zshrc file:

    function kudasai_preexec() {
        # Check if the last word is ' kudasai'
        if [[ $1 == *" kudasai" ]]; then
            # Remove ' kudasai' and prepend 'sudo'
            cmd=${1%" kudasai"}
            eval "sudo $cmd"
            # Prevent the original command from running
            return 1
        fi
    }
    
    # Register the preexec hook
    autoload -Uz add-zsh-hook
    add-zsh-hook preexec kudasai_preexec
    

    Edit: as downside you always get 1 exit code with this implementation (little_annoying) .

    • abobla@lemm.eeOP
      link
      fedilink
      arrow-up
      4
      ·
      5 months ago

      damn, this is some next level shit

    • stetech@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      Why does it compare against $1 for the string match? Wouldn’t kudasai be at the end of something like $*?

  • ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    5 months ago

    This from the OS that made me have to do a search for “how to kill children”.

    • metaStatic@kbin.earth
      link
      fedilink
      arrow-up
      4
      ·
      5 months ago

      wasn’t that Windows?

      don’t make me watch the task manager video again …

      • ☂️-@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 months ago

        deleted by creator

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

  • 936 users / day
  • 3.34K users / week
  • 6.61K users / month
  • 17.9K users / 6 months
  • 1 local subscriber
  • 26.2K subscribers
  • 795 Posts
  • 20.9K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org