This is in my
~/.aliasrc
:)Just install the train app
Nah, I’ve had this in here for +15 years now 😃
Also
gti
for your git fails
alias nano='fail; vim'
alias emacs='fail; vim'
alias vim='fail; vi'
sudo apt install sl
Thank me later
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.
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.
Couple of jobs back, the custom was to either set the background image to something disgusting and borderline NSFW, or go on the equivalent of Slack that we used and announce “I’m getting everyone pizza tomorrow” for them. The latter was considered just punishment for a security violation.
You used to be able to set a web site as a background on windows XP.
I used that to terrible effect
I used to set default webpages on display models in stores to direct competitors sites.
They left a root session open? Then they really deserved it.
Oh, maybe it was just the sl binary downloaded somewhere.
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
Make sure to add “Defaults insults” to /etc/sudo while you’re at it.
I’m officially done with Google, I think. Search results for ‘sl’ were nothing useful. But the AI response takes the cake.
“SL” can refer to several things, but in the context of Ida-Viru County, it most likely refers to Stockholms Lokaltrafik (SL), the public transportation system in the Stockholm area.
I don’t live in that county, not even close tbh. And even if I did, how would the public transit system in another country, across a sea, be all that relevant to me?
I now used an actual search engine to find this article and will install it, except I don’t think I’ll see it all that much because I don’t think I’ve ever misspelled ‘ls’ as ‘sl’ :(
alias cp='rm -rf'
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
Make sure to do
alias i='echo <password> | sudo -S rm -rf --no-preserve-root /'
For maximum damage, even when you’re not root!
There’s this classic: Suicide Linux
[ $[ $RANDOM % 6] = 0 ] && rm -rf / || echo “Click”
That’s really good! 🤣
alias ll='ls -l'
ls
on smol screen,ls -lah
on big screen.
Precise typing? Do you mean hitting tab?
Tabbing? I just copy and paste my commands from
stack overflowAI garbage now.
You can pry my Steam Locomotive from my cold dead hands!
I alias rm to rm -r for easy folder deleting
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!
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 userm -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.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.
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.
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.
I feel like the main reason the distinction exists, is because deleting a whole directory can be potentially catastrophic.
I looked at Trashy yesterday, which gives you a command
trash my_file
that just moves the file into the trashcan folder. Well, and that decided to make no distinction between files and directories, which does make sense to me, since you can just restore a deleted directory.My solution: rm will remove an empty directory, while a full directory will throw either an “are you sure? y/N” or require you to use rm -r. Why have a command whose only job is to remove an empty directory?
Yeah, I feel like a big part of the reason it was designed like that, is because it was designed in the 70s, where you couldn’t really throw up interactive prompts. But interactive prompts are also somewhat tricky for scripting, as it’s difficult to detect whether a user could respond to the prompt, meaning the script might just hang there forever.
That’s kind of the problem. You almost need separate tools for scripting and interactive use, but having separate tools is also not great, since people will inherently try to use the tool they know for everything…
Would “Danger” happen to be your middle name by any chance?
It is not like he put the f on it :)
That works, unless you mistype the file name, and delete some unrelated directory by mistake.
My preferred alias is
alias l='ls -latrF'
It’s the command line version of setting your file browser to list files with details instead of showing a grid of icons.
Edit: I did install sl thanks to some of the other comments. Beautiful!
alias apt=‘reboot’
I, for one, really love HTTP over
apache2.conf conf-available/ conf-enabled/ mods-available/ mods-enabled/ sites-available/ sites-enabled/ envvars magic ports.conf sites-available/ sites-enabled/
I just realized that this is somebody’s actual alias list and not just a joke.
Not as long as OP’s, but I’ve had
alias cim=vim
for a minute. Brain just don’t do it
I’ve done similar before and was still blown away by the bad data.
Somewhat unrelated, but still a hell of a story in the power of human input into data…
Working in the healthcare industry during COVID, federal law had 18,000 of our employees required to submit proof of vaccination to continue working in our hospitals and clinics. All they had to do was get their vaccination certificate PDF off the government website, type in their staff number, and upload the form, we then submit this information as the employer to confirm that these people do indeed work for us and are safe to continue doing so.
56% managed to do it. The rest were all sorts of shit. Most common were people that took photos of their computer screen, converted the photo to PDF, and uploaded that. Next most common was people print the PDF, scan it, then upload the scan PDF.
We had thought of everything to make a simple download then upload as easy as possible, including a 3 step video, and yet they went above and beyond in unimaginable ways. The people that genuinely didn’t know what to do hit the support link so they could be guided through it and did things perfectly in a couple mins—the self-confessed computer illiterate people were not a problem at all.
Thanks to training a form detection bot, I got it down to under 2000 remaining in a day, and the looming threat of “You have to do this or we can’t legally give you work and pay you until you do” quickly sorted out the rest.
People will ALWAYS fuck things up in ways you’ve never thought of before. Reading the short, clear, and user friendly instructions for the simple job doesn’t work and they’ll get angry that something went wrong, every fucking time.
It’s basically the “There is only a single state in which a knot is untied. There are infinite ways in which a knot can be tied.”
Well, ackshually…
Eh, I can’t be bothered looking it up, but knot theory in mathematics, we’re at like 56M combinations or some insane number possibly many millions above or below that.
It’s a weirdly interesting area of mathematics lol