Pwd and `pwd`
Jump to navigation
Jump to search
pwd means "print working directory." If you don't know where you are, you can type pwd and your terminal will tell you. In BASH scripting language, the backwards single quote (which can be found above the "tab," next to the "1" key on your keyboard) means "execute what is inside these quotes and put the result in it's place." For example, I'm inside a certain directory and I want to set that directory as an environment variable (because maybe the path name is really long and I don't want to type it a lot), I can set it directly, or use `pwd`
$ pwd /Users/Shared/FLOOXS/cur $ export FLXSHOME=`pwd` $ echo $FLXSHOME /Users/Shared/FLOOXS/cur