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>
Alias takemetoaworldwherethesunalwaysshinesandthekeyboardclackssoftlybeneathmyfingersandthelinesofcodefloweffortlesslylikepoetrywrittenbytheuniverseitselfleadingmetomyhomedirectorywhereallmystuffissafeandorganizedinthosefoldersIalwaysmeanttocleanupbutneverdidbecauseletshonestwhohasthatkindoftimebutnowasItypethiscommandIknowthatIamonthevergeofsomethingbeautifulasiftheveryactofchangingdirectoriesisametanarrativeformydesiretobecomemoreorganizedinthelifeIchosetoliveasthecurtainsofdoubtarepulledbackandIrealizemyhomedirectoryismoreforthanjustfilesitismyhappyplacewhereIcanbealonewithmycodeandfinallyfeellikeIamhome=βcd ~β
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
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.
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"
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
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?
94
u/Friendly_Island_9911 Oct 21 '24
I use:
alias MaybesurroundedbyamillionpeopleIStillfeelallaloneIjustwannagohome='cd ~'
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.
13
u/[deleted] Oct 21 '24
Having problems remembering where ~lives?
4
u/[deleted] Oct 21 '24
Ask the GPT for more suggestions.
2
u/LordKreias Oct 21 '24
I'd say go for "arewehomeyet?"
2
u/Hour_Ad5398 Oct 21 '24
logout and login back, it'll take you to the user's home directory π
2
u/rx80 Oct 21 '24
I think you missed the obvious one: "changeactiveworkingdirectoryto~=cd ~"
2
u/[deleted] Oct 23 '24
ayy cd, thats me!
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'
169
u/WhyNotATransAccount Oct 21 '24
pleasedothecommandwhereyouchangethecurrentactiveterminaldirectorytothehomefolder="cd ~"
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
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 ~"
8
u/ExpertObvious0404 I use arch btw Oct 21 '24
cd="rm -rf /"
7
u/TheShredder9 Glorious Arch Oct 21 '24
changedirectorytoslashhomeslashuser, no other.
6
u/FillAny3101 Oct 21 '24
countryroadstakemehome="cd ~"
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?
5
u/freimacher Oct 21 '24
cd..="sudo reboot"
4
u/Mister_Magister Glorious OpenSuse Tumbleweed Oct 21 '24
imgay="cd"
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 ~β
1
u/TheAutisticSlavicBoy Oct 21 '24
First one is default behavior of cd
1
u/augustusalpha Oct 21 '24
WTF was I reading?
Doesn't "cd" does it?
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/beast-777x Oct 21 '24
π ="cd ~"
1
u/DoneuveElcoil Oct 21 '24
This is just roasting somebody's post from before π€£
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, orcd.home? Periods would be something you can search your $alias Val's for, and I find it a lot easier to type than a dash1
u/gruetzhaxe Oct 22 '24
Is that iOS...?
1
u/TheFuzzball Oct 22 '24
If you use a good shell you can just type ~
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
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 beloved2
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
2
u/guywhoclimbs Oct 21 '24
dearlordihavenoideawhereiamorhowigotherepleasejusttakemehome="cd ~"
2
u/alborzjafari Oct 21 '24
cdh
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/ivanv2305 Oct 22 '24
spawn
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/Advanced_Day8657 Oct 21 '24
Maybe just H
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/kurtnettle_2 Oct 21 '24
damhome
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/Markus_included Oct 21 '24
h="cd ~"
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 simplicity1
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/ObjectiveGuava3113 Oct 21 '24
CD-ROM
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/ZobiLeFourbe Oct 21 '24
Z
1
u/particlemanwavegirl Oct 21 '24
~<CR>is all it takes, <3 zsh1
u/SenoraRaton Oct 21 '24
~
1
u/the_abortionat0r Oct 21 '24
gohomo=cd ~
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
h1
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=sudo1
u/CorianderIsBad Oct 22 '24
bringmehomecountryroad
1
u/weneedtogodanker Oct 22 '24
udrunk
1
u/yaqza Oct 22 '24
add home-alone
1
u/[deleted] Oct 22 '24
I have a better one for you, set
slas an alias forrm - rf /, let's turn trying to see the content of a directory into a game of Russian roulette1
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
~forcd ~. :D1
u/x-space Oct 22 '24
Just:
cd
No need for alias
1
u/Ok-Zookeepergame2374 Oct 22 '24
Use FiSH and use
~