pwd

Command Function

This command is used to display the current path.

Syntax

pwd

Parameters

None.

Usage Guidelines

The pwd command writes the full path (from the root directory) of the current directory to the standard output. The directories are separated by slashes (/). The directory following the first slash (/) indicates the root directory, and the last directory is the current directory.

Example

Run pwd.

Output

Current path:

OHOS:/sdcard/nfs$ pwd
/sdcard/nfs