cd '/dev/sda1'
or
cd "C:/"
cd '/dev/sda1'
or
cd "C:/"
More like cd… dir cd… dir cd…
Sometimes I have to swap between two routed for several things, so I create a quick in-memory alias like aa=$(pwd)
Then I can cd $aa
bind '"^H":"cd ..^M"'
Syntax get's twisted here. Second ^ is inserted automatically. As well as the One after the actual bash line.
What it does: Bind Ctrl+Backspace to cd ..
.
The history
of the CTO at a previous job was filled with dc
and sl
because he was a fucking moron. Yes I'm still bitter that he earned way more money than me who had to fix all his mess.
Honestly I haven't tried this on Linux yet, but didn't Windows implement this somewhere along the way?...
cd ....
I aliased cd
to a custom funtion in my bashrc to do this at one point, but cd ../../../..
is too engrained so I never rembered to use it.
You will probably like zoxide (i am not sure about policy on links here, but here you go https://github.com/ajeetdsouza/zoxide)
cd ./..
cd ../._
I've used a script that made 'up 4' a thing. Forgot to migrate it though.
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
sudo
in Windows.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.