1cd(n)                        Tcl Built-In Commands                       cd(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       cd - Change working directory
9

SYNOPSIS

11       cd ?dirName?
12_________________________________________________________________
13
14

DESCRIPTION

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

EXAMPLES

24       Change to the home directory of the user fred:
25              cd ~fred
26
27       Change to the directory lib that is a sibling directory of the  current
28       one:
29              cd ../lib
30
31

SEE ALSO

33       filename(n), glob(n), pwd(n)
34
35

KEYWORDS

37       working directory
38
39
40
41Tcl                                                                      cd(n)
Impressum