dwww Home | Manual pages | Find package

cd(3tcl)                     Tcl Built-In Commands                    cd(3tcl)

______________________________________________________________________________

NAME
       cd - Change working directory

SYNOPSIS
       cd ?dirName?
______________________________________________________________________________

DESCRIPTION
       Change  the current working directory to dirName, or to the home direc-
       tory (as specified in the HOME environment variable) if dirName is  not
       given.   Returns an empty string.  Note that the current working direc-
       tory is a per-process resource; the cd command changes the working  di-
       rectory  for  all  interpreters  and  (in  a  threaded environment) all
       threads.

EXAMPLES
       Change to the home directory of the user fred:

              cd ~fred

       Change to the directory lib that is a sibling directory of the  current
       one:

              cd ../lib

SEE ALSO
       filename(3tcl), glob(3tcl), pwd(3tcl)

KEYWORDS
       working directory

Tcl                                                                   cd(3tcl)

Generated by dwww version 1.14 on Sun Jan 12 13:07:59 CET 2025.