this post was submitted on 11 Aug 2025
846 points (98.6% liked)

linuxmemes

26661 readers
1755 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

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

    founded 2 years ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] fossilesque@mander.xyz 14 points 3 hours ago (1 children)
    [–] MTK@lemmy.world 2 points 2 hours ago

    That's really good! 🀣

    [–] daggermoon@lemmy.world 4 points 2 hours ago* (last edited 2 hours ago) (1 children)
    alias arch-update='sudo pacman -Syu && Yay -Syu && flatpak update && sudo freshclam'
    
    [–] vaionko@sopuli.xyz 5 points 2 hours ago (3 children)

    Isn't pacman -Syu redundant if you run yay -Syu afterwards? Also, just yay is the same as yay -Syu

    [–] daggermoon@lemmy.world 1 points 1 hour ago

    Probably. I'll give your way a try. I never really thought about it much after writing it. Thanks!

    [–] MrMcGasion@lemmy.world 1 points 1 hour ago

    It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running yay -Syu will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.

    If you run pacman -Syu on its own the unnecessary dependencies will be removed and you won't get the AUR versions, and then yay -Syu will only update things you actually want from AUR.

    [–] slowcakes@programming.dev 2 points 1 hour ago (1 children)

    Yes but who cares, it works and that is all that matter.

    If you would see my dotfiles, you would see a lot of unnecessary shit, because I don't write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.

    [–] daggermoon@lemmy.world 1 points 1 hour ago

    Yes but who cares, it works and that is all that matter.

    This has pretty much been my approach to everything I do lol.

    [–] moopet@sh.itjust.works 4 points 3 hours ago (1 children)
    [–] Atomic@sh.itjust.works 3 points 3 hours ago* (last edited 3 hours ago) (3 children)

    The most useful for me is probably ~~"ln = ls -n"~~

    It's supposed to be "lsn = ls -n".

    [–] d_k_bo@feddit.org 3 points 2 hours ago (1 children)

    I originally had

    alias ll="ls -la"
    

    Now it is

    alias ll="eza --all --long --header --group --time-style=long-iso --git --icons --group-directories-first"
    [–] Magnum@lemmy.dbzer0.com 2 points 3 hours ago (1 children)
    [–] Atomic@sh.itjust.works 2 points 2 hours ago

    In true accordance to the post. I mistyped. I have it set as lsn.

    [–] Opisek@lemmy.world 2 points 3 hours ago (1 children)

    What if you need to create a link?

    [–] Atomic@sh.itjust.works 2 points 3 hours ago

    I mistyped. I have it set as lsn.

    [–] oplkill@lemmy.world 5 points 5 hours ago (1 children)
    [–] Valmond@lemmy.world 1 points 2 hours ago

    Windows programmer detected!

    (I was guilty of this so much)

    [–] alt_xa_23@lemmy.world 7 points 8 hours ago

    I recently switched to a mechanical keyboard (with linear switches), and it took me a while to stop mistyping every command

    [–] Ascend910@lemmy.ml 28 points 13 hours ago
    [–] iveseenthat@reddthat.com 31 points 14 hours ago* (last edited 14 hours ago) (1 children)
    [–] passepartout@feddit.org 14 points 12 hours ago

    ls on smol screen, ls -lah on big screen.

    [–] Emerald@lemmy.world 17 points 13 hours ago (3 children)

    I alias rm to rm -r for easy folder deleting

    [–] Matriks404@lemmy.world 1 points 1 hour ago

    That works, unless you mistype the file name, and delete some unrelated directory by mistake.

    [–] Atomic@sh.itjust.works 7 points 3 hours ago

    Would "Danger" happen to be your middle name by any chance?

    [–] captain_aggravated@sh.itjust.works 21 points 10 hours ago (3 children)

    UGH that shit.

    rm deletes a file. It can't delete a directory, you have to use

    rmdir to delete a directory...as long as there's nothing in that directory. If there's anything in the directory, you have to know to use

    rm -r to delete a directory and its contents, and no

    rmdir -r isn't right somehow!

    [–] Matriks404@lemmy.world 1 points 1 hour ago* (last edited 1 hour ago)

    I don't think there's any reason to use rmdir unless you write (Ba)sh scripts, and you want to make sure that the directory is indeed empty. Just use rm -r.

    Also note that you can use rmdir -p this/is/some/path to remove all nested directories including the parent (this here). But this will only work if there's exactly one directory per parent directory, and the last directory doesn't have any files (including directories). This might be helpful for some scripts.

    rmdir -r isn't a thing, because that would invalidate the reason this command exists.

    [–] Opisek@lemmy.world 1 points 3 hours ago

    Reminds me of a little annoyance I have with cat and ls. Yeah they technically do different things, one is for files and one is for directories. But so often I just find myself wishing I could use one command for both. Like making cat directory act as ls. Maybe I'm the only one who feels that way.

    [–] setsubyou@lemmy.world 2 points 7 hours ago (1 children)

    On Linux, rm can delete empty directories with -d too, not just with -r.

    rmdir is the counterpart to mkdir, which creates empty directories, so of course it can only remove empty directories. After all mkdir can’t create full directories either. There however is rmdir -p as a counterpart to mkdir -p, so if there is something in the directory, you can use that, as long as the something is an empty directory.

    [–] captain_aggravated@sh.itjust.works 3 points 5 hours ago* (last edited 5 hours ago)

    Yeah it still has a certain "AAAAH! You didn't say simon says" feel to it when you're actually trying to get things done. Like imagine if you had to choose a different option from a context menu to delete a folder in a GUI. If there was an option for Remove File and another one placed a little elsewhere in the menu that says Remove Directory.

    I'm still gonna call it an unsanded corner.

    alias apt='reboot'

    [–] Flax_vert@feddit.uk 40 points 17 hours ago (2 children)
    sudo apt install sl
    

    Thank me later

    [–] _stranger_@lemmy.world 9 points 13 hours ago* (last edited 13 hours ago) (3 children)

    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.

    [–] sykaster 4 points 7 hours ago

    Logging in on the high school computers there was a way through some folder tree into the wallpapers of all the teacher accounts. Boy did we have fun with that, they never found out who did it though

    [–] nailbar@sopuli.xyz 3 points 7 hours ago* (last edited 7 hours ago)

    They left a root session open? Then they really deserved it.

    Oh, maybe it was just the sl binary downloaded somewhere.

    [–] Flax_vert@feddit.uk 6 points 12 hours ago (2 children)

    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.

    load more comments (2 replies)
    load more comments (1 replies)
    [–] sorter_plainview@lemmy.today 145 points 22 hours ago (29 children)
    [–] dunz@feddit.nu 110 points 21 hours ago (5 children)

    This is in my ~/.aliasrc :)

    load more comments (5 replies)
    load more comments
    view more: next β€Ί