Tcsh

TENEX C Shell
DevelopersKen Greer, Paul Placeway, Christos Zoulas, et al.
Stable release
6.24.16 Edit this on Wikidata / 9 July 2025; 16 months ago (9 July 2025)
Written inC
Operating systemCross-platform
PredecessorC shell
TypeUnix shell
License2002: BSD-3-Clause
1991: BSD-4-Clause
Websitewww.tcsh.org Edit this on Wikidata
Repository

tcsh (/ˌtiːˈsiːʃɛl/ “tee-see-shell”, /ˈtiːʃɛl/ “tee-shell”, or as “tee see ess aitch”, tcsh) is a Unix shell based on and backward compatible with the C shell (csh).

Shell

tcsh is essentially the C shell with programmable command-line completion, command-line editing, and a few other features. Unlike the other common shells, functions cannot be defined in a tcsh script and the user must use aliases instead (as in csh). It is the native root shell for some BSD-based systems, including FreeBSD 13 and earlier. (FreeBSD 14 changed the default root shell to sh to match the default user shell whereas OpenBSD uses the Korn shell ksh for both root and regular users.)

tcsh added filename and command completion and command line editing concepts borrowed from the TENEX operating system, which is the source of the “t”. Because it only added functionality and did not change what was there, tcsh remained backward compatible with the original C shell. Though it started as a side branch from the original csh source tree that Bill Joy had created, tcsh is now the main branch for ongoing development.

tcsh is very stable but new releases continue to appear roughly once a year, consisting mostly of minor bug fixes.

On many systems, such as macOS and Red Hat Linux, csh is actually tcsh. Often one of the two files is either a hard link or a symbolic link to the other, so that either name refers to the same improved version of the C shell (although behavior may be altered depending on which name is used).

On Debian and some derivatives (including Ubuntu), there are two different packages: csh and tcsh. The former is based on the original BSD version of csh and the latter is the improved tcsh.

History

The “t” in tcsh comes from the “T” in TENEX, an operating system which inspired Ken Greer at Carnegie Mellon University, the author of tcsh, with its command-completion feature. Greer began working on his code to implement Tenex-style file name completion in September 1975, finally merging it into the C shell in December 1981. Mike Ellis at Fairchild A.I. Labs added command completion in September 1983. On October 3, 1983, Greer posted source to the net.sources newsgroup.

Significant features

Deployment

tcsh has historically been in the default shell for FreeBSD and its descendants including DragonFly BSD and Mac OS X. However, as of July 2026, tcsh is no longer the default shell on FreeBSD since release 14.0. Prior to this release, tcsh had been the default shell of the root user, although it was not the default shell for unprivileged users. As of FreeBSD 14.0, the Almquist shell is used as the default shell for both privileged and unprivileged users. However, as of July 2026, FreeBSD continues to package tcsh in new installations by default.

Versions of Mac OS X prior to 10.3 provided tcsh as the default shell for user accounts, as a result of its nature as a descendant of FreeBSD. With the release of Mac OS X 10.3, the default user shell for new accounts was altered to be bash, and this default would continue until 10.15, where it was further altered to zsh.

See also