In this compilation of sysadmin horrors, one of the authors writes, as a rule of thumb:
Always do a
cd .before doing anything.
Why would you want to do that?
At least not just like that. The preceding line in the quoted document is of importance:
This way, you as the operator verify your current working dir before doing anything of importance, as it's printed out with each change.
This "verification" is a good thing, and you should adapt a form of it. A more (IMHO) common variation of this theme is to always print out the working dir at the prompt.
If the current working directory of your shell is removed, it is possible to lose data.
The output of
If the current working directory directory was removed and re-created, typing
I think it's more important to show your current directory.
On every linux server, I modify the prompt in
The effect of this is: