1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/tcsh.md

30 lines
567 B
Markdown
Raw Normal View History

2021-11-15 05:35:13 +10:00
# tcsh
> C shell with file name completion and command line editing.
2022-07-01 08:21:02 +10:00
> See also: `csh`.
2021-11-15 05:35:13 +10:00
> More information: <https://manned.org/tcsh>.
- Start an interactive shell session:
`tcsh`
- Start an interactive shell session without loading startup configs:
`tcsh -f`
2022-07-01 08:21:02 +10:00
- Execute specific [c]ommands:
2021-11-15 05:35:13 +10:00
2022-07-01 08:21:02 +10:00
`tcsh -c "{{echo 'tcsh is executed'}}"`
2021-11-15 05:35:13 +10:00
2022-07-01 08:21:02 +10:00
- Execute a specific script:
2021-11-15 05:35:13 +10:00
`tcsh {{path/to/script.tcsh}}`
2022-07-01 08:21:02 +10:00
- Check a specific script for syntax errors:
2021-11-15 05:35:13 +10:00
`tcsh -n {{path/to/script.tcsh}}`
2022-07-01 08:21:02 +10:00
- Execute specific commands from stdin:
2021-11-15 05:35:13 +10:00
2022-07-01 08:21:02 +10:00
`{{echo "echo 'tcsh is executed'"}} | tcsh`