Next: Quoting File Names, Previous: Minibuffer for File Names, Up: File Names [Index]
default-directoryEach buffer has a default directory, stored in the
buffer-local variable default-directory. Emacs always assumes that any
relative file name is relative to the default directory,
When you visit a file, Emacs sets default-directory in the visiting buffer
to the directory of its file.
pwdShow the current default directory.
cd DIRMake DIR become the current buffer’s default directory.