So Wikipedia (link) tells me that the command pwd
is short for "print working directory", and that makes sense.
But for the environment variable, the "P" has to be an acronym for something else than print.
I hear people talking about "current working directory", which sounds better and is more intuitive, but still the environment variable seems to be called $PWD, and not $CWD. Nobody ever says "Did you check the print working directory variable?".
I am currently playing around with the web application server uWSGI, and when running it tells me (on the uWSGI stats page):
"cwd":"/home/velle/greendrinks",
so they obviously like the (more intuitive acronym) cwd
over pwd
.
I guess I am trying to figure out if I misunderstood something, or if it is just a matter of having given the environment variable an unintuitive name?
$PWD
is equivalent to\
pwd``, and that was justification enough. – that other guy Dec 19 '14 at 17:36