2021-11-14 19:35:13 +00:00
|
|
|
# tcsh
|
|
|
|
|
|
|
|
> C shell with file name completion and command line editing.
|
2022-06-30 23:21:02 +01:00
|
|
|
> See also: `csh`.
|
2021-11-14 19:35:13 +00: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-06-30 23:21:02 +01:00
|
|
|
- Execute specific [c]ommands:
|
2021-11-14 19:35:13 +00:00
|
|
|
|
2022-06-30 23:21:02 +01:00
|
|
|
`tcsh -c "{{echo 'tcsh is executed'}}"`
|
2021-11-14 19:35:13 +00:00
|
|
|
|
2022-06-30 23:21:02 +01:00
|
|
|
- Execute a specific script:
|
2021-11-14 19:35:13 +00:00
|
|
|
|
|
|
|
`tcsh {{path/to/script.tcsh}}`
|
|
|
|
|
2022-06-30 23:21:02 +01:00
|
|
|
- Check a specific script for syntax errors:
|
2021-11-14 19:35:13 +00:00
|
|
|
|
|
|
|
`tcsh -n {{path/to/script.tcsh}}`
|
|
|
|
|
2022-06-30 23:21:02 +01:00
|
|
|
- Execute specific commands from stdin:
|
2021-11-14 19:35:13 +00:00
|
|
|
|
2022-06-30 23:21:02 +01:00
|
|
|
`{{echo "echo 'tcsh is executed'"}} | tcsh`
|