chdir

From DavinciWiki
(Redirected from Chdir)
Jump to: navigation, search


64-bit SafeYes

Description

"Change Directory". Changes the current working directory for the davinci session. Equivalent to cd, change directory, in Unix.

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

Recent Core Changes

Modified On: 10-08-2013

Personal tools