Mwnci cd() Function

Syntax

cd(directory)

Description

The cd() function is used to change the current working directory to the named directory

Example

// Already in /tmp
println(getwd())
cd("/etc")
println(getwd())


/tmp
/etc