pwd

Prints working directory

Applicability

Product

Command type

VersionVault

cleartool subcommand

MultiSite

multitool subcommand

VersionVault Remote Client

rcleartool subcommand

Platform

UNIX®

Linux®

Windows®

Synopsis

pwd

Description

The pwd command lists the current working directory. This command is intended for use in interactive cleartool, rcleartool, and multitool sessions, and in batch files or shell scripts that simulate interactive sessions.

UNIX® and Linux® —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 system and Linux 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 system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.

  • On a UNIX® or Linux® system, list the name of the current working directory.

    cmd-context pwd
    /vob_project/core

  • (VersionVault) On a Windows® system, 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

  • (VersionVault) On a UNIX® or Linux® system, 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