Product | Command Type |
---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
Attache | command |
MultiSite | multitool subcommand |
Platform |
---|
UNIX |
Windows |
The pwd command lists the current working directory. This command is intended for use in interactive cleartool and multitool sessions, and in batch files or shell scripts that simulate interactive sessions.
In version-extended namespace, the current working directory is listed as a pathname that is both view-extended and version-extended. (See the pathnames_ccase reference page.) It includes the version of each directory element between the current location and the VOB root directory. For example:
% cd util.c@@main
cmd-context pwd
/view/akp@@/usr/hw/main/1/src/main/1/util.c/main
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
List the name of the current working directory.
cmd-context pwd
/usr/hw
(ClearCase and ClearCase LT) Use a view-extended pathname to go to the \users_hw\src directory in the context of the jackson_old view, and then list the name of the directory.
cleartool>
cd M:\jackson_old\users_hw\src
cleartool> pwd
M:\jackson_old\users_hw\src
(ClearCase and ClearCase LT) Change to a version-extended namespace directory and list its name. Then change back to the original directory and list its name.
% cleartool> cd src@@
% cleartool>
pwd
/view/jackson_vu@@/usr/hw/main/2/src
% cd /usr/hw/src
cleartool>
cd
cleartool>
pwd
/usr/hw/src
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |