Artifact af3043dc896a3a8dbc838f0f7e550d30c6dafbfc743abe97771c044449e26289:
- File doc/markdown/cd.md — part of check-in [bb08aafe0a] at 2025-07-15 19:41:45 on branch tip-700 — some non-change cosmetics to make the ctags implementation in Geany 2.1 partly happy again (user: Torsten, size: 972) [annotate] [blame] [check-ins using]
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 fIdirNamefR, or to the home directory (as specified in the HOME environment variable) if fIdirNamefR is not given. Returns an empty string.
Note that the current working directory is a per-process resource; the fBcdfR command changes the working directory for all interpreters and all threads.
Examples
Change to the home directory of the user fBfredfR:
cd [file home fred]
Change to the directory fBlibfR that is a sibling directory of the current one:
cd ../lib