LinuxCommandLibrary

tcsh

C shell with file name completion and command line editing.

TLDR

Start an interactive shell session

$ tcsh
copy


Start an interactive shell session without loading startup configs
$ tcsh -f
copy


Execute specific [c]ommands
$ tcsh -c "[echo 'tcsh is executed']"
copy


Execute a specific script
$ tcsh [path/to/script.tcsh]
copy


Check a specific script for syntax errors
$ tcsh -n [path/to/script.tcsh]
copy


Execute specific commands from stdin
$ [echo "echo 'tcsh is executed'"] | tcsh
copy

Copied to clipboard