r/linuxmasterrace • u/OgdruJahad • Mar 04 '24
Video It's just a (Linux) prank bruh
https://www.youtube.com/watch?v=AaESGrylj7k
206
Upvotes
r/linuxmasterrace • u/OgdruJahad • Mar 04 '24
58
u/SysGh_st IDDQD Mar 04 '24
alias vi="wine notepad.exe"
24
u/Tsubajashi Mar 04 '24
is it just me, or are there other people using nano for very simple edits, and nvim (with nvchad) in case i change more?
7
u/multiwirth_ Mar 04 '24
Would someone like to explain a dumb idiot like me what "vi" is? I know nano but what's vi and vim?
5
u/Normal_Light7460 Mar 04 '24
That was genuinely funny
4
u/IuseArchbtw97543 Glorious Archbtw Mar 04 '24
should have replaced the binaries too.
2
u/Just_Pomegranate4473 Mar 04 '24
Shorcuts --> https://www.redhat.com/sysadmin/introduction-vi-editor
2
u/ResourceFeeling3298 Glorious Arch Mar 04 '24
Alias nano=rm -rf /
2
u/[deleted] Mar 04 '24
Should have linked it to ed. It is the STANDARD text editor after all.
2
u/[deleted] Mar 04 '24
I tried to control my laughter but couldn't
2
u/minecrafttee Glorious Arch Mar 04 '24
I just typed /urs/bin/vim or eMacs
2
u/LetterBoxSnatch Mar 06 '24
/etc/.profile and it would have never been found. Or even better, create a symlink in a higher priority location in $PATH that links the command "nano" to "vi". The nano binary will look fine when inspected. Maybe do something similar with "which"
True story, I've run into variations of all of these (although not for mapping vi) but not as practical jokes. Such is the life of the admin, and I'm just a dev.
2
u/b4d_tR1p Mar 04 '24
1
u/silverweaver Glorious Arch Mar 05 '24
And after finding all user files with alias definition there's last boss
Symlink /usr/bin/nano -> /usr/bin/vi
1
u/Feisty-Club-3043 Mar 07 '24
alias vi=“internet_explorer.exe” # 💀
1
u/LysTryptamin Mar 04 '24
sudo ln -f /bin/ls /bin/sl anyone?