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

DESCRIPTION

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

EXAMPLES

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

SEE ALSO

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

KEYWORDS

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