Artifact b26e5b033c951d62fa9fa6ddb1db411b9146b38e687b231e1cbc7885f0f50c2a:
- File doc/markdown/cd.md — part of check-in [485e87ff16] at 2025-06-10 14:32:53 on branch tip-700 — - added 4 initial markdown pages (bgerror, cd, configurable, proc) - unitfy snytax in singleton.n, define.n, configurable.n - correct missing '?' in configurable.n - consider special case in Tcl.n manual page - more documentation of the conversion script and status - fix parseCommand for last arg in .optarg (user: Torsten, size: 958) [annotate] [blame] [check-ins using] [more...]
CommandName: cd ManualSection: n Version: unknown TclPart: Tcl TclDescription: Tcl Built-In Commands Links:
- filename(n)
- glob(n)
- pwd(n) Keywords:
- working directory Copyright:
- Copyright (c) 1993 The Regents of the University of California.
- Copyright (c) 1994-1996 Sun Microsystems, Inc. ---
Name
cd - Change working directory
Synopsis
::: {.synopsis} ::: [cd]{.cmd} [dirName]{.optarg} :::
Description
Change the current working directory to dirName, or to the home directory (as specified in the HOME environment variable) if dirName is not given. Returns an empty string.
Note that the current working directory is a per-process resource; the cd command changes the working directory for all interpreters and all threads.
Examples
Change to the home directory of the user fred:
cd [file home fred]
Change to the directory lib that is a sibling directory of the current one:
cd ../lib