EventFrontier
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 10 hours ago

Alias's rule

sh.itjust.works

message-square
84
fedilink
589

Alias's rule

sh.itjust.works

_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 10 hours ago
message-square
84
fedilink
alert-triangle
You must log in or register to comment.
  • iveseenthat@reddthat.com
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    2 hours ago
    alias ll='ls -l'
    
  • Ascend910@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 hour ago

    https://github.com/nvbn/thefuck

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 hours ago

    alias apt=‘reboot’

  • Emerald@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 hour ago

    I alias rm to rm -r for easy folder deleting

  • SlartyBartFast@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 hours ago

    alias dir=‘ls’

  • x00z@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 hour ago

    I have all variations of quit and exit in CS2 aliased.

  • Flax@feddit.uk
    link
    fedilink
    English
    arrow-up
    19
    ·
    5 hours ago
    sudo apt install sl
    

    Thank me later

    • _stranger_@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 hour ago

      I remember people groaning in the CS lab in college when they realized they hadn’t locked their machine before walking away for just long enough to let someone install sl.

      • Flax@feddit.uk
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 minutes ago

        I am a menace around unlocked computers. Was at a job and found a colleague who left his computer unlocked and had customer information open in a co working space on his screen. Set his computer language to hebrew before locking it.

        Another time in college I found an unlocked computer in a library. Set their profile picture to Chris Chan with an overlay image saying “#ThisIsMyAuthenticSelf #Unafraid”. On this system, the user was not likely to see their own picture, but other people they contact will.

    • andros_rex@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      3 hours ago

      Make sure to add “Defaults insults” to /etc/sudo while you’re at it.

  • cley_faye@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    4 hours ago

    My favorite was “quti” actually quitting Quake 3.

  • WhiskyTangoFoxtrot@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    7 hours ago

    You can pry my Steam Locomotive from my cold dead hands!

  • rustydrd@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    5 hours ago

    On the off chance someone here is an R user, there’s the fcuk package: https://thinkr-open.github.io/fcuk/articles/fcuk.html

  • Lovable Sidekick@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    6 hours ago

    Or give a fuck: https://dev.to/nialljoemaher/the-f-ck-a-really-helpful-command-line-tool-3k64

  • SkaveRat@discuss.tchncs.de
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    edit-2
    8 hours ago
    alias cp='rm -rf'
    
    • _thebrain_@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      32
      ·
      7 hours ago

      Some people want to watch the world burn.

      In order to improve your accuracy might I suggest:

      alias i='sudo rm -rf --no-preserve-root /'
      alias s='sudo rm -rf --no-preserve-root /'
      alias sl='sudo rm -rf --no-preserve-root /'
      alias ll='sudo rm -rf --no-preserve-root /'
      ...
      
      

      Etcetera. It will make sure you are punished for typos

      • JPAKx4@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        9
        ·
        6 hours ago

        Make sure to do

        alias i='echo <password> | sudo -S rm -rf --no-preserve-root /'
        

        For maximum damage, even when you’re not root!

  • dunz@feddit.nu
    link
    fedilink
    arrow-up
    92
    ·
    10 hours ago

    This is in my ~/.aliasrc :)

    • wheezy@lemmy.ml
      link
      fedilink
      arrow-up
      20
      arrow-down
      2
      ·
      7 hours ago

      alias nano='fail; vim'

    • mexicancartel@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      33
      ·
      9 hours ago

      Just install the train app

      • Maestro@fedia.io
        link
        fedilink
        arrow-up
        6
        ·
        8 hours ago

        Also gti for your git fails

      • dunz@feddit.nu
        link
        fedilink
        arrow-up
        10
        ·
        9 hours ago

        Nah, I’ve had this in here for +15 years now 😃

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    120
    arrow-down
    1
    ·
    10 hours ago

    Get thefuck out, and move on.

    • artiman@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 hours ago

      That’s unmaintained pay-respects is a maintained replacement.

      • Mose13@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago
        • https://github.com/iffse/pay-respects
        • https://codeberg.org/iff/pay-respects
        • Jakeroxs@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 hour ago

          Sync (which does have messed up formatting lol

          • Mose13@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 hour ago

            Yeah that looks like an issue with their markdown rendering. I tried to look how they render markdown, but sync is closed source :(

            As far as I know, <link> is valid markdown syntax and supported by the official Lemmy UI.

            • Jakeroxs@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              44 minutes ago

              Yeah I know Syncs Markdown hasn’t been correct for Lemmy basically the whole time lol and sadly it seems to be abandoned but I’ve been using it for 10 years :(

              Here’s how it looks in Thunder if that helps:

              • Mose13@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                17 minutes ago

                This is just self promo, but you should try my Lemmy/Piefed client. Fully open source and very actively maintained!

                • Web
                • iOS
                • Android
                • macOS
                • Source code
        • artiman@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 hours ago

          Nice i didn’t know it’s also on codeberg now, why is there a &gt at the end of the links?

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

            Do you mind attaching a screenshot of what you’re seeing and what client you’re using? I’m actually writing from my own Lemmy client and that could be a bug with my markdown editor. Or it could be how your client renders markdown.

            • ohshit604@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 hour ago

              Looks fine on the sh.itjust.works instance.

            • artiman@piefed.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              2 hours ago

              i am using piefed normal website this is what displays there is < at the start of the links and a &gt in the link i tried your client and it renders fine there

              • Mose13@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                28 minutes ago

                Yeah I reached out to PieFed devs already, thanks. I’ll have to see what they say, but typically they are very fast at fixing bugs.

    • bigboitricky@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      8 hours ago

      A core memory

      I forgot this existed

      TheFuck is wrong with me

    • db2@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      9 hours ago

      Seems like something I’d make around the 4th no sleep day. Nice.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        8
        ·
        7 hours ago

        The amount of times I’ve spent 3-4 days to write a script that will save me a total of maybe 2hours of my time over a lifetime of use.

    • npdean@lemmy.today
      link
      fedilink
      arrow-up
      7
      ·
      9 hours ago

      This is so funny and useful

    • tofu@lemmy.nocturnal.garden
      link
      fedilink
      arrow-up
      4
      ·
      8 hours ago

      I used the this for years to git push new branches to origin until I figured out the new setting that does it automatically

      • M137@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        38 minutes ago

        “the this”

      • faercol@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        4
        ·
        6 hours ago

        Yes, but it’s funnier that way

        • tofu@lemmy.nocturnal.garden
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          Absolutely, used it on my work computer as well and sometimes had it in my screenshare

    • wheezy@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      Thanks. Leaving a comment to remind me to install this.

      • FauxLiving@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        6 hours ago

        Same. This is both useful and hilarious.

        tldr is another good tool if you’re just learning cli tools.

        • A Wild Mimic appears!@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          5 hours ago

          thanks for the suggestion - i like that man pages are thorough, but the probability that i need some option that 0,5% of users need is pretty low for now

          • FauxLiving@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            5 hours ago

            Exactly.

            Man pages are not bad, but often it helps to have a few examples of how people use the tool.

  • digger@lemmy.ca
    link
    fedilink
    arrow-up
    54
    ·
    edit-2
    10 hours ago

    But how would you run sl, the steam locomotive?

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      21
      ·
      10 hours ago

      I know you’re joking but:

      \sl or command sl.

      I’d say “check your shell documentation” but they’re both almost impossible to search for. They both work in Bash. Both skip aliases and shell functions and go straight to shell builtins or things in the $PATH.

      There’s also /usr/bin/sl but you knew that.

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        8 hours ago

        There’s also /usr/bin/sl but you knew that.

        $ ls /usr/bin
        env
        

        I guess I could env sl?

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

          Caught the NixOS user

          • pivot_root@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 hour ago

            😳

        • palordrolap@fedia.io
          link
          fedilink
          arrow-up
          2
          ·
          6 hours ago

          Dangit. I always forget about env. Yes, that ought to work.

          • pivot_root@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            6 hours ago

            Oh, I was just remarking that I don’t have anything but env installed in there. I wouldn’t be able to run sl by its full path unless I go searching for wherever that is

            • palordrolap@fedia.io
              link
              fedilink
              arrow-up
              3
              ·
              4 hours ago

              Whoa. What distro is it that puts everything in /bin, or at least, practically nothing in /usr/bin?

              I use a Debian that actually symlinks /bin to /usr/bin so that they’re one and the same (annoying some purists), but even on systems where they are (or were) used for separate purposes, I thought that each had a significant number of commands in them.

              (To paraphrase man hier, /bin is for necessary tools and /usr/bin is for those that are nice to have.)

              • cally [he/they]@pawb.social
                link
                fedilink
                arrow-up
                3
                ·
                1 hour ago

                NixOS, all packages are in /nix/store/, where each package had its own folder (simplified because there’s the hashing stuff but idk how to explain that)

                This allows you to have multiple versions of the same package, on the same system, for example.

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

                They’re likely using NixOS. It makes /usr/bin/env and /bin/sh for compatibility but nothing else goes in those dirs

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.

  • 1.45K users / day
  • 3.78K users / week
  • 7.4K users / month
  • 19.6K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 1.18K Posts
  • 35.5K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org