Thursday, August 30, 2007

Unix - print name of working directory

`pwd` - print name of current/working directory,return working directory name.

Usage:
pwd [OPTION]

Print the full filename of the current working directory.
pwd writes an absolute path name of the current working directory to standard output.


EXAMPLE:

root@server# pwd
/

------------------------------
trigger@server:/stdisk001/home/trigger>pwd
/stdisk001/home/trigger

------------------------------

[root@server log]# pwd
/var/log

No comments: