Top "Cd" questions

cd is the "change directory" command offered by most shells.

How to implement your own cd command in your own shell

I am working in a mini project: "MY OWN COMMAND INTERPRETER (SHELL)", like the Bash shell or Sh shell. Till …

c linux shell cd pwd
What is the reason for the CD /D switch in Windows cmd?

At first I'd like to say that I do understand the purpose of the /D switch for the Windows Command …

windows command-line cmd command-prompt cd
Execute a bash function upon entering a directory

I'd like to execute a particular bash function when I enter a new directory. Somethink like: alias cd="cd $@ &&…

bash function cd
How to push a commit to Github from a CircleCI build using a personal access token

When executing a build for git repository giantswarm/docs-content in CircleCI, I'd like to push a commit to another repository …

git github continuous-integration circleci cd
Why does ls ~/.ssh work but not cd ~/.ssh?

If the ls command lists the contents of a directory, then some output to ls <directory would seem to …

bash cmd ls cd
Difference between cd and function chdir

What is the difference between the cd shell command and the Perl function chdir? Please can you explain with an …

perl cd chdir
Bash function that changes directory

I have a common use case that I'd like to write a function for: I often want to cd to …

bash cd
Change cd default directory (bash)

I'm looking for a way to change the default directory of cd, and I'm wondering if this is possible. I …

linux bash terminal cd