NAME pwd - print name of current/working directory. It prints the path of the working directory starting from root(/). SYNOPSIS pwd [option]... DESCRIPTION Print the full filename of the current working directory. It has 2 flags and it takes no arguments. -L, --logical use pwd from environment, even if it contains symbolic links. -P, --physical avoid all symbolic links. If both -L and -P options are used, -L is taken into priority. And if no option is specified at the command prompt, pwd will avoid all symlinks, so -P is assumed. --help display this help and exit --version output version information and exit Returns zero unless an invalid option is given or the current directory cannot be read. Therefore, 0 = success. Non-zero(any character that is not zero) = failure. NOTE: your shell may have its own version of pwd, which usually supersedes the version described here. So we'll use /bin/pwd instead of pwd alone. Reason : pwd alone means the s
Linux Tips, Tricks, Hacks and Tutorials Linux Apps and Tools reviews.