chdir

From DavinciWiki

Jump to: navigation, search


64-bit SafeYes

Description

Changes the current working directory for the davinci session.

Arguments and Return Values

Arguments: The path of the directory desired

Return Value: None. The working directory is changed.

Usage

Syntax: chdir(dir = STRING)

The path is specified from the current directory. To go back up one directory input the string "..". To go to an immediate subdirectory, input the subdirectory name with or without the full path.

The command "!pwd" shows the parent working directory.

Examples

 dv> !pwd
 /work/knowicki/library

 dv> chdir("wiki")
 "wiki"

 dv> !pwd
 /work/knowicki/library/wiki

 dv> chdir("../..")
 "../.."

 dv> !pwd
 /work/knowicki

 dv> chdir("library/wiki")
 "library/wiki"

 dv> !pwd
 /work/knowicki/library/wiki

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Modified On: 07-06-2009

Personal tools