Tcsh comes with several built-in shell variables.
tcsh提供几个内置的shell变量。
Listing 13. Automatically correct typos with TCSH.
清单13.tcsh自动纠正输入。
The tcsh (pronounced tee-see-shell) can do exactly that.
Tcsh(发音为 tee-see-shell)恰好可以完成该工作。
Now that you have installed TCSH, you can adjust your prompt.
现在你已经安装了tcsh,可以调整命令提示符了。
You can solve this problem using the TCSH autologout variable.
可以用tcshautologout变量解决这个问题。
This article has focused mainly on the variables that are unique to tcsh.
本文主要介绍 tcsh特有的变量。
Thus, it makes sense to have TCSH as the login shell of choice in a secure environment.
因此,在安全环境中选择tcsh作为登录shell是有意义的。
For example, if you want to invoke perl and have typed in PRL, TCSH lets you correct it.
例如,如果希望调用perl,但是输入的是prl, tcsh会提示您纠正它。
Tcsh provides the built-in variable correct, which helps you correct invalid command usage.
tcsh提供内置变量correct,这有助于纠正无效的命令用法。
Tcsh has a great feature that lets you perform such periodic execution of events with ease.
tcsh的一个出色特性使我们能够轻松地定期执行特定的命令。
Use rehash and which TCSH (assuming you are installing TCSH) to make sure it got installed.
假设你正在安装tcsh,使用rehash和which tcsh确定它已被安装。
Tcsh defines the prompt built-in shell variable, which you can use to customize shell prompts.
tcsh定义了prompt内置shell变量,可以通过这个变量定制shell提示。
The shell variable printexitvalue is a useful feature of tcsh that immensely aids script debugging.
shell变量printexitvalue是一个很有用的tcsh 特性,它对脚本调试非常有帮助。
The next few sections describe some of the most useful features tcsh provides through shell built-ins.
下面几节讨论 tcsh通过shell内置变量提供的一些最有用的特性。
Tcsh provides a gamut of shell variables and aliases, in addition to supporting those that csh supplies.
除了支持csh 提供的shell变量之外,tcsh 还提供了大量 shell 变量和别名。
All commands and scripts described in this article have been tested with TCSH 6.15 (see the Resources section).
本文描述的所有命令和脚本都用tcsh 6.15测试过(参见参考资料)。
As in exercise 3, remove the software to manage disk space and prevent the need for any future updates to TCSH.
同练习3一样,卸载软件以管理磁盘空间并阻止tcsh将来的任何更新要求。
If this alias is set, then TCSH executes the command that CMDCWD was aliased to after switching to a new folder.
如果已设置这个别名,那么在切换到新文件夹之后tcsh会执行cmdcwd映射到的命令。
Tcsh provides the built-in shell variable watch, which makes it easy to view who is logging in and out of the system.
tcsh提供了内置shell变量watch,可以通过它查看正在使用系统的用户。
As root, edit /etc/shells, addinga line in the file for the new shell, in this case /usr/local/bin/tcsh, and save the file.
作为root用户,编辑 /etc/shells ,在该文件中为新的shell添加一行,在本例中是 /usr/local/bin/tcsh,保存文件。
Note that periodic is aliased to the script checkdiskusage, which checks for disk usage and is run by tcsh every 10 minutes.
注意,periodic 映射到脚本checkdiskusage,这个脚本检查磁盘使用量,tcsh每10 分钟运行它一次。
Tcsh is a widely available shell that most likely is not installed on your computer but is available from your YUM repository.
Tcsh是一个广泛使用的shell命令,该命令有可能未安装在您的计算机中,但是可以从YUM资源库中获得。
Use the chsh command to change your shell to tcsh permanently, or type tcsh at theprompt to change your shell without logging in again.
使用chsh命令永久的将你的shell换为tcsh,或者在命令提示符处键入tcsh改变你的shell,而不需要再次登陆系统。
Use the CHSH command to change your shell to TCSH permanently, or type TCSH at the prompt to change your shell without logging in again.
使用chsh命令永久的将你的shell换为tcsh,或者在命令提示符处键入tcsh改变你的shell,而不需要再次登陆系统。
Tcsh defines a shell variable rmstar; when turned on, it provides the user with a prompt that requests confirmation of the user's action.
tcsh定义了一个shell变量rmstar;如果打开这个变量,在用户执行操作时会显示提示,要求用户确认操作。
This is typically in the form of the Bash shell, or sometimes the C shell, or Tcsh, or the Korn shell(the default on IBM's AIX operating system).
其中比较典型的是Bashshell,有时也会是C shell,或Tcsh,Korn shell(IBMAIX 操作系统的缺省 shell)。
If you set this variable, TCSH displays the exit status whenever a script or program returns a non-zero value, thereby indicating a potential error.
如果设置这个变量,那么当脚本或程序返回非零值时tcsh会显示退出状态,这会指出潜在的错误。
If the addsuffix variable is unset, then TCSH displays only documents, which is inconvenient because you need to determine whether documents is a normal file or a folder.
如果取消addsuffix变量,tcsh就只显示documents,这对于判断documents是一般文件还是文件夹很不方便。
If the addsuffix shell variable is set along with automatic Tab completion, it's easier to distinguish folders because tcsh suffixes them with a / character when a match is found.
如果同时设置 addsuffixshell变量和自动Tab补齐,那么在找到匹配时tcsh 会在文件夹后面加上一个 /字符,这样就更容易区分出文件夹。
You can find the details in the manual page for tcsh, but here is a line to put in your .tcshrc that will tell you how many commands you have typed, what time it is, and what directory you are in.
可以在tchs的指南页中找到详细的信息,但是,这里有一行可放进你的.tcshrc文件中,它会告诉你键入了多少条命令,键入时间和所在的目录。
应用推荐