pwd

Prints working directory

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
ClearCase LTcleartool subcommand
MultiSitemultitool subcommand

Platform
UNIX
Windows

SYNOPSIS

pwd

DESCRIPTION

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.

UNIX—The Version-Extended Namespace

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

RESTRICTIONS

None.

EXAMPLES

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.

  • 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

SEE ALSO

cd, pwv



Copyright© 2003 Rational Software. All Rights Reserved.