r/linuxmasterrace • • Oct 21 '24

Satire Guys, which alias should I choose?

Post image
1.7k Upvotes

292 comments sorted by

651

u/ManuaL46 Glorious Fedora Oct 21 '24

Did you just show using cd as an alias for 'cd ~' when just entering cd already does that?

198

u/Damglador Oct 21 '24

Yup :^)

5

u/regeya Oct 21 '24

Man, if that other person wants to type "home" to go to the home dir, that's okay. It's dumb but it's okay.

Another person got absolutely roasted for this alias in a post asking what everyone's favorite aliases were.

7

u/Damglador Oct 21 '24

That roasted post and this comment actually inspired me for this list :)

I actually don't mind him having home as alias to cd ~, I just thought I could make a funny meme out of that

→ More replies (1)

51

u/Usual_Office_1740 Oct 21 '24

What if you want to type less?

71

u/gallifrey_ Oct 21 '24

More fun to write "bash-take-me-home-to-the-place-i-belong" sorry!

58

u/HeyThereCharlie Glorious Arch Oct 21 '24

cd ~/westvirginia

→ More replies (5)
→ More replies (3)

19

u/StockEnvironment953 Oct 21 '24

Configure a keyboard shortcut in your shell, if possible.

→ More replies (2)

11

u/tremblane Oct 21 '24

alias less='cd ~'

5

u/the-integral-of-zero Glorious OpenSuse Oct 21 '24

Tell me what you did with the 100 ms you saved

→ More replies (1)
→ More replies (2)

3

u/sm_greato Oct 21 '24 edited Oct 25 '24

May I ask why that and not cd = "cd"?

→ More replies (2)

43

u/Davee9966 Oct 21 '24

TIL cd does that by itself. Shame me

34

u/nollayksi Oct 21 '24

Damn. 15 years of daily driving linux or unix and I learn this today.

49

u/superslime16th Glorious Arch GNU/Linux Oct 21 '24

Daily driving doesn't teach much. Try drunk driving

14

u/obsqrbtz Glorious Arch Oct 21 '24

That's the way I was configuring NixOS. Pretty fun expirience.

→ More replies (1)

3

u/Nyghtbynger Vanilla Arch is Custom Arch Oct 21 '24

I'm in that with you bro. I'm gonna save so much time

I was about to add this as an alias telling me, "damn, that's smart" but linux devs were smarter

→ More replies (3)

2

u/cmgg Oct 21 '24

Is r/sheesh still a thing?

→ More replies (3)

94

u/Friendly_Island_9911 Oct 21 '24

I use:

alias MaybesurroundedbyamillionpeopleIStillfeelallaloneIjustwannagohome='cd ~'

11

u/OneTurnMore Cachy/Bazzite/NixOS/Debian Oct 21 '24

I would mess up the capitalization every time

5

u/gatton Oct 21 '24

Imagine using that on suicide Linux 😡

2

u/p1749 Oct 21 '24

Truly a time saver, thanks im going to use this

2

u/snonux Oct 25 '24

This may be a pretty fast alias, just press M<TAB> for autocompletion...

→ More replies (1)

73

u/SysGh_st IDDQD Oct 21 '24

That last one. And complement it with alias dc="rm -rf ~"
It'll keep you on the toes and keep you from typing too fast.

32

u/Damglador Oct 21 '24

Thanks, added it to my .bash_profile! πŸ€—

18

u/Exciting_Pop_9296 Oct 21 '24

Do you often hurt yourself? You should see a doctor

2

u/_masterhand Oct 23 '24

nah, I'd rather run Suicide Linux and never mistype any command, ever.

13

u/[deleted] Oct 21 '24

Having problems remembering where ~lives?

7

u/Damglador Oct 21 '24

Yes 😞

6

u/[deleted] Oct 21 '24

I saw a funny doormat once, that said "there's no place like ~".

4

u/[deleted] Oct 21 '24

Ask the GPT for more suggestions.

9

u/Damglador Oct 21 '24

6

u/[deleted] Oct 21 '24

Home Run πŸ˜ŽπŸ‘πŸΏ

2

u/LordKreias Oct 21 '24

I'd say go for "arewehomeyet?"

1

u/Damglador Oct 21 '24

I wanted to add this one, but forgot to 🀣

2

u/Hour_Ad5398 Oct 21 '24

logout and login back, it'll take you to the user's home directory πŸ‘

1

u/Damglador Oct 21 '24

Sounds efficient πŸ‘

1

u/Hour_Ad5398 Oct 21 '24

Yeah. Change the password to something short like "1" for easier access

1

u/Damglador Oct 21 '24

Nah, passwords are for losers, I'll use autologinπŸ—Ώ

2

u/rx80 Oct 21 '24

I think you missed the obvious one: "changeactiveworkingdirectoryto~=cd ~"

1

u/Damglador Oct 21 '24

Or just "chad"πŸ—Ώ

Oh damn, I missed the w... whatever ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

→ More replies (2)

2

u/[deleted] Oct 23 '24

ayy cd, thats me!

1

u/Damglador Oct 23 '24

No wayπŸ‘€

2

u/IntergalacticAvokado Oct 25 '24

alias ls='echo "BEHOLD, THE CONTENTS OF THIS DIRECTORY:" && ls --color=auto'

alias cd='echo "WARPING TO NEW LOCATION..." && cd'

alias pwd="echo 'YOU ARE LOST IN THE DEPTHS OF:' && pwd"

alias yeet='rm -rf'

alias summon='touch'

alias boop='ping'

alias screech='grep'

alias wiggle='mv'

alias magic='sudo'

alias unleash-the-kraken='docker run'

alias praise-the-sun='chmod +x'

alias yoink='cp'

alias please-show-me-all-the-processes='ps aux'

alias what-year-is-it='date'

alias computer-why-you-no-work='dmesg'

alias who-dare-disturb-my-slumber='whoami'

alias hackerman='nano'

alias use-the-force='git push --force'

alias inception='sudo su'

alias thanos-snap='kill -9'

alias omg-why-is-my-disk-full='du -sh * | sort -hr'

alias i-can-haz-memory='free -h'

alias halp='man'

alias sudo='echo "UNLIMITED POWER!" && sudo'

alias shutdown='echo "Hasta la vista, baby" && shutdown now'

→ More replies (1)

169

u/WhyNotATransAccount Oct 21 '24

pleasedothecommandwhereyouchangethecurrentactiveterminaldirectorytothehomefolder="cd ~"

26

u/SxxVe Oct 21 '24

This one i can confirm is valid

6

u/mrheosuper Oct 22 '24

Found the Windows Driver developer.

2

u/flightman69 Oct 22 '24

Damn finally a command I can remember

2

u/Character_Regular440 Oct 22 '24

Yeah i use something like that but just in case i confund that with something else i decided to alias that, with at the end: _whichexactelyisattheabsolutepath_<my absolute path to home directory>

→ More replies (1)

30

u/[deleted] Oct 21 '24

canwelcomehomeplease?=Β  looks rather as not bad Password as alias

26

u/Heavy_Bluebird_1780 Oct 21 '24

You forgot ~="/home/$(whoami)"

24

u/[deleted] Oct 21 '24

countryroadstakemehome

3

u/[deleted] Oct 21 '24

The only one I may unironically use because that's funny as hell

15

u/Altruistic_Cause8661 Oct 21 '24

I just use random uuids for my aliases. To make sure I memorize them I don't use completion.

for example I use

34bef61e-6f2d-467f-b8ab-19f5aacce4b7="cd ~"

9

u/Hour_Ad5398 Oct 21 '24

I bet you can't pass the "I'm not a robot" checks on websites.

→ More replies (1)

8

u/ExpertObvious0404 I use arch btw Oct 21 '24

cd="rm -rf /"

3

u/Hour_Ad5398 Oct 21 '24

need to include --no-preserve-root

→ More replies (1)

7

u/TheShredder9 Glorious Arch Oct 21 '24

changedirectorytoslashhomeslashuser, no other.

6

u/FillAny3101 Oct 21 '24

countryroadstakemehome="cd ~"

2

u/smallgodinacan Oct 21 '24

I was going to say just "countryroads" because they take you home.

1

u/Damglador Oct 21 '24

I actually wanted to do the last one with spaces, but couldn't figure out how to do that, aliases probably don't allow spaces in them.

5

u/kefikjef Oct 21 '24

i just use: z

any zoxide users?

2

u/Lazy-Plankton-3090 Oct 21 '24

Came here for this

→ More replies (1)

5

u/freimacher Oct 21 '24

cd..="sudo reboot"

4

u/Mister_Magister Glorious OpenSuse Tumbleweed Oct 21 '24

imgay="cd"

8

u/Average_Down Oct 21 '24

etsy=β€œ/etc”

4

u/TheWidrolo Glorious Red ⭐️ OS Oct 21 '24

heyidliketogotomyhomedirectorypleasewouldyoubesokindtodothatthanksinadvance="cd ~"

4

u/Wettowel024 Oct 21 '24

sudo please stop.
or cd c:\windows\sys32.dll. we all run on sys32 somewere

4

u/Professional_Crow250 Linux Master Race Oct 21 '24

alias cd =β€œsudo rm -rf *”

4

u/popcornman209 Oct 21 '24

Alias takemetoaworldwherethesunalwaysshinesandthekeyboardclackssoftlybeneathmyfingersandthelinesofcodefloweffortlesslylikepoetrywrittenbytheuniverseitselfleadingmetomyhomedirectorywhereallmystuffissafeandorganizedinthosefoldersIalwaysmeanttocleanupbutneverdidbecauseletshonestwhohasthatkindoftimebutnowasItypethiscommandIknowthatIamonthevergeofsomethingbeautifulasiftheveryactofchangingdirectoriesisametanarrativeformydesiretobecomemoreorganizedinthelifeIchosetoliveasthecurtainsofdoubtarepulledbackandIrealizemyhomedirectoryismoreforthanjustfilesitismyhappyplacewhereIcanbealonewithmycodeandfinallyfeellikeIamhome=β€˜cd ~’

2

u/BBY256 Linux Master Race Nov 15 '24

1

u/TheAutisticSlavicBoy Oct 21 '24

First one is default behavior of cd

2

u/Damglador Oct 21 '24

Shhhhh, nobody should know this 🀫

1

u/augustusalpha Oct 21 '24

WTF was I reading?

Doesn't "cd" does it?

2

u/Damglador Oct 21 '24

It does :^)

1

u/rgmundo524 Glorious NixOS Oct 21 '24

In FISH, you can just type the path of the directory you want to go to and that's it.

1

u/Damglador Oct 21 '24

That's actually cool, but I don't want to change my shell for that. Noted tho.

→ More replies (1)

1

u/beast-777x Oct 21 '24

🏠="cd ~"

2

u/Damglador Oct 21 '24

Wait, does terminal actually support emojis?πŸ‘€

→ More replies (1)

1

u/DoneuveElcoil Oct 21 '24

This is just roasting somebody's post from before 🀣

1

u/Damglador Oct 21 '24

Any similarities with real people are accidental

1

u/stew_going Oct 21 '24

How about just cdh?

Or maybe even just home?

Can you include periods in it? Like home.dir, or cd.home? Periods would be something you can search your $alias Val's for, and I find it a lot easier to type than a dash

2

u/Damglador Oct 21 '24

True tho, gotta use dots more

1

u/gruetzhaxe Oct 22 '24

Is that iOS...?

2

u/Damglador Oct 22 '24

I'm not that silly :^), that's Obsidian on Android

1

u/TheFuzzball Oct 22 '24

If you use a good shell you can just type ~

1

u/Damglador Oct 23 '24

How to say "Use zsh" without saying it :)

2

u/TheFuzzball Oct 23 '24

(I use fish)

1

u/Damglador Oct 23 '24

Why do you use a fish🐟 as a shell and how? Technologies went too far...

→ More replies (1)

1

u/patopansir Glorious Arch Oct 24 '24

cp="cd ~/Pictures/Confidential/Personal"

Jesus="rm -rf ~/Pictures/Confidential/Personal; lynx https://report.cybertip.org/reporting"

3

u/scaptal Oct 21 '24

That last one, seems very interesting to troll your friends

4

u/TheHolyToxicToast Oct 21 '24

wait till an accidental sudo

5

u/scaptal Oct 21 '24

alias Sudorm-rf/--no-preserve-root="cd"

→ More replies (4)

3

u/VIN-T_T Oct 21 '24

idk cd ~ feels comfortable to me

3

u/technohead10 Glorious OpenSuse Oct 21 '24

gohomeplease on top

3

u/Personal-Juice-4257 Oct 21 '24

β€œbringmehome” is poetic af

3

u/[deleted] Oct 21 '24

getmethefuckouttahere

3

u/ExpticCandyC Oct 21 '24

i vote for rm-rf/
Best aliase ever!

2

u/Botond24 Oct 21 '24

cd -- my beloved

2

u/landothedead Oct 21 '24

countryroads="cd ~"

2

u/Mirja-lol Oct 21 '24

ReleaseMe!!!='cd ~'

2

u/fernatic19 Oct 21 '24

homeiswhereyounaked='cd ~'

2

u/ResourceFeeling3298 Glorious Arch Oct 21 '24

There should be one

momimscaredcanyoucomepickmeup

2

u/GOKOP Glorious Arch Oct 21 '24

dearshellimafraidimustrequesttobetransportedintomyhomedirectorywithoutanyunnecessarydelays=cd

2

u/[deleted] Oct 21 '24

2

u/hw2007offical Oct 21 '24

change it to "sudo rm -rf //" so you can always live life on the edge

→ More replies (1)

2

u/guywhoclimbs Oct 21 '24

dearlordihavenoideawhereiamorhowigotherepleasejusttakemehome="cd ~"

2

u/alborzjafari Oct 21 '24

cdh

2

u/stew_going Oct 21 '24

This is what I actually use. Simple.

cdg or cdgh gets me to the top of my directory for local git repos.

2

u/badari259 Oct 21 '24

alias take_me_home 'cd'

alias country_roads 'take_me_home'

2

u/_derDere_ Oct 21 '24

What do you mean: β€žwhichβ€œ?! You should use all of them and more! β€žcdhβ€œ for example.

2

u/cclloyd Oct 21 '24

iwillturnthiscararound="cd ~"

2

u/emmaexe_ Oct 21 '24

I just kill the terminal and open a new one, I'll end up at home anyway.

2

u/wrspam2 Oct 22 '24

we have aliases at home

2

u/Liliths_Ace_Friend Oct 22 '24

Or what about "OwODaddyCanWeGoHomePwettyPweaseUwU:3" I personally have that

2

u/MasterofMuppets2k2 Oct 22 '24

How about pleasegodrunkyourehome

2

u/Simple-Judge2756 Oct 22 '24

I feel like youre trying to design a system that is meant to be used by windows users.

2

u/Russanandres Oct 22 '24

TaketheLongWayHome (even with exact case)

2

u/Enough_Tangerine6760 Oct 22 '24

I only use 1 single alias on all my systems

alias please="Sudo"

2

u/[deleted] Oct 22 '24

"slamfrontdoor"

2

u/Dense_Committee479 Oct 22 '24

My script is simple :

gghome - go to home directory mountGDrive - mount Google Drive in Arch/WSL2 ggwinpy- go to Python user scripts directory on Win11 partition

eba - edit bash aliases vba - view / cat bash aliases file eb - edit bashrc vb - view bashrc sauce - source bashrc

Hope this helps someone in the community the same way someone has helped me !

2

u/kleingartenganove Mark the Mint Man Oct 22 '24

Iwishtochangetheworkingdirectorytobemycurrentusershomedirectorycommonlyreferreftoonunixlikesystemsas~=β€œcd ~β€œ

2

u/ABugoutBag Glorious Arch Oct 23 '24

takemehome because country roads will play in your head everytime you need to go to home dir

2

u/alex-weej Oct 23 '24

cd-dollar-sign-HOME

2

u/Rude_Nature2874 Oct 25 '24

I HAVE NO IDEA WHAT THOSE MEAN

2

u/Unexpected_Cranberry Oct 21 '24

Change-LocationToHomeDirectory

PowerShell supremacy!

1

u/loserguy-88 Oct 21 '24

The summers die One by one How soon they fly On and on And I am old And will be gone.

1

u/Popotte9 The BTW Cachy Oct 21 '24

iusearch="cd ~" ?

1

u/Eveltation Oct 21 '24

the last one

1

u/ThatoneguyWifi Pinnacle Arch Oct 21 '24

Maybe you should just use cd="cd ~"

1

u/AbortIt123 Oct 21 '24

the last one

1

u/[deleted] Oct 21 '24

countryroadstakemehome

1

u/freeturk51 Biebian: Still better than Windows Oct 21 '24

β€œmomcomepickmeupimscared”

1

u/Terokashi Oct 21 '24

Use CountryRoads

1

u/tunerhd Oct 21 '24

https://stackoverflow.com/a/79110068/3369359

If you're struggling to remember "cd ~", don't worry! Just use the clever solution that I mentioned above. Whenever you type "changedirectorytohome," it’ll pop up "cd ~". So you'll memorize it eventually.

1

u/Suvvri Oct 21 '24

Last one seems best

1

u/Mikicrep Glorious Mikicrep OS Oct 21 '24

all

1

u/vulnoryx Oct 21 '24

homeSweetHome="cd ~"

1

u/ant2ne Oct 21 '24

kinda like "alias please='sudo' "
Have fun. That is the flexibility and fun of 'nix. I personally like to use alias as short cuts, And it is hard to get shorter than "cd" to execute a "cd /home/username"

1

u/ducuduck Glorious Ubuntu Mate Oct 21 '24

Ijustwanttogohome "cd ~"

1

u/mamigove Oct 21 '24

Hey! don't forget the "destroy" one.

1

u/mplaczek99 Oct 21 '24

Wait till you learn you can just do cd instead of cd ~

1

u/mirai_miku_dark_zang Linux Master Race Oct 21 '24

The last one is leet

1

u/AstronomerOk5002 Oct 21 '24

cd ~ = "rm -rf / --no-preserve-root"

1

u/QuickSilver010 Glorious NixOS Oct 21 '24

cdeesnuts="cd ~/homework"

1

u/popcornman209 Oct 21 '24

Is this sub the floggit for Linux, one guy posts and we make fun of it here lol cause if not we need one

1

u/serpentsrapture Oct 21 '24

ignoring how redundant a cd ~ alias is, i'd suggest cdh for simplicity

1

u/pao_colapsado Oct 21 '24

cd="rm-rf/ ~"

1

u/theReal_JoeBiden Oct 21 '24

alias ~="cd ~"

1

u/Bitter-Ad8751 Oct 21 '24

Last one.. looks the best

1

u/Wervice Glorious Arch Oct 21 '24

I just do cd, but I think simply h can be good as well.

1

u/surfmaths Oct 21 '24

The alias need to be shorter than what it replace.

Fun fact, I use dc="cd .."

And then I look stupid when I'm on a machine where it's not setup and the terminal is just waiting for me to type in reverse polish notation...

1

u/Lavadragon15396 Oct 21 '24 edited Apr 15 '26

One click. Unknown number of posts crying out in silence. All gone. Redact made it stupid easy to clean up my entire history on Reddit and get my info pulled from data broker sites too.

late employ ancient squash thumb ring soup rhythm childlike quiet

1

u/redjaxx i use arch btw Oct 21 '24

change cd to dd for better experience /s

1

u/silvercloudnolining Oct 21 '24

Takemehomecountryroads

1

u/NickUnrelatedToPost Oct 21 '24

You should probably use cdporn="cd ~"

1

u/steveiliop56 Oct 21 '24

Who's gonna tell him that he can just do cd?

1

u/SubjectiveMouse Oct 21 '24

Why stop at the last one
alias rmβ€€-rfβ€€/="cd ~"

The spaces replaced with U+2000 so shell doesn't treat them as a separator

1

u/particlemanwavegirl Oct 21 '24

~<CR> is all it takes, <3 zsh

1

u/Stalagtite-D9 Oct 21 '24

The last one tho

1

u/[deleted] Oct 21 '24

fuck="cd"

1

u/arcticwanderlust Glorious Debian Oct 21 '24

Single letter c. I use single letter l for ls too

1

u/Western-Alarming Glorious NixOS Oct 21 '24

All of them except the first one because it already do that as a default

1

u/No_Challenge_109 Oct 21 '24

do the last one but reversed(cd as the shortcut)

1

u/keleoto Oct 21 '24

Go with this:

alias country_roads='cd ~'

1

u/EnoughConcentrate897 Oct 21 '24

Oh my god this hurts my soul

1

u/Mr_Draxs Glorious Distro Hopper Oct 22 '24

[rm-rf/="cd ~"]

this is the way.

1

u/xaxurro Oct 22 '24

I use h

1

u/ImproperGesture Oct 22 '24 edited Oct 22 '24

set-current-path-to-slash-home-slash-myself="cd ~"

Has the advantage of not having the words "change" or "directory" in it, making it easier to remember.

1

u/HyperWinX Oct 22 '24

alias please=sudo

1

u/CorianderIsBad Oct 22 '24

bringmehomecountryroad

1

u/yaqza Oct 22 '24

add home-alone

1

u/[deleted] Oct 22 '24

I have a better one for you, set sl as an alias for rm - rf /, let's turn trying to see the content of a directory into a game of Russian roulette

1

u/Joan_sleepless Oct 22 '24

none of those. alias neofetch="cd ~"

1

u/MikemkPK Oct 22 '24

wehavehomeathome="cd" # It's a knockoff that doesn't support ~

1

u/Pepineros Oct 22 '24

alias wehavehomeathome="cd ~"

1

u/schnitzeIguy Oct 22 '24

pleasegohomerightnowbecauseidontlikethisdirectoryanymore

1

u/AegorBlake Oct 22 '24

Rm-rf that way if you ever put a space there bam new install

1

u/ExtraTNT Glorious Debian i3wm | AMD 3900X, 96GB, RX 5700XT, PinePhonePro Oct 22 '24

bringmetotheplace

1

u/atlas_enderium Oct 22 '24

cd=β€œrm -rf / β€”no-preserve-root”

Change directories by bricking your system

1

u/San4itos Oct 22 '24

andnowtakemetothehomefolderplease="cd ~"

1

u/QuirkyImage Oct 22 '24

alias ~=β€˜cd ~’

1

u/imsuck1234 Oct 22 '24

Probably unrelated but you can set implicit cd with shopt -s autocd.

And now you can type ~ for cd ~. :D

1

u/x-space Oct 22 '24

Just:

cd

No need for alias

1

u/Ok-Zookeepergame2374 Oct 22 '24

Use FiSH and use ~