News for hackers. Stuff that matters.
Re:How does `cd` work? by ataylor32 on Thursday March 01, 2018 @02:20PM (#16495220)
Random piece of info about cd:

cd.. (no space between "cd" and "..") works on Windows

Re:How does `cd` work? by Ao7bei3s on Thursday March 01, 2018 @02:41PM (#16495430)
Or try zsh with a good pre-made config like grmlzshrc[1]. It allows changing to a directory by typing only its name (or path). This includes the .. directory. Doesn't get faster.

[1] https://grml.org/zsh/

Re:How does `cd` work? by orf on Thursday March 01, 2018 @03:42PM (#16496082)
Or use Autojump[1], changed my life

1. https://github.com/wting/autojump

Re:How does `cd` work? by cdancette on Thursday March 01, 2018 @05:06PM (#16496830)
This is like the zsh plugin 'z'
Re:How does `cd` work? by ksherlock on Thursday March 01, 2018 @03:18PM (#16495818)
bash: `shopt -s autocd`
Re:How does `cd` work? by disconnected on Thursday March 01, 2018 @02:40PM (#16495421)
It's been like that since the DOS days, IIRC.

You can simulate that behavior on bash with an alias such as this one:

  alias cd..="cd .."
Re:How does `cd` work? by lokedhs on Thursday March 01, 2018 @08:17PM (#16498045)
I believe that you also don't need the space when you specify a path:

    cd\foo\x
The cmd parser in Windows is the most bizarre piece of software in common use. I don't believe there is a single person that actually understands how it works completely.
Re:How does `cd` work? by JdeBP on Sunday March 04, 2018 @04:19AM (#16513909)
I think that Rex Conn and I could give it a fair go. (-:
Re:How does `cd` work? by mathieulegrand on Monday March 05, 2018 @01:55AM (#16519261)
cool
Re:How does `cd` work? by vollmond on Thursday March 01, 2018 @02:59PM (#16495618)
My base bashrc has this and cd-, just to handle typos
Re:How does `cd` work? by qbrass on Friday March 02, 2018 @10:55AM (#16502514)
Starting in Windows 95, you could stack periods to go back further than one directory. "cd....." instead of "cd ..\..\..\.."