Use the fignore shell variable to avoid accidental deletion
使用fignoreshell变量避免意外删除
To enable this feature, you need to set the autolist shell variable.
为了启用这个特性,需要设置shell变量autolist。
To prevent this from happening, always keep the noclobber shell variable turned on.
为了防止发生这种情况,应该一直打开shell变量noclobber。
The script in Listing 24 provides an example of these shell variable declaration methods.
清单24中的脚本给出这些shell变量声明方法的示例。
Create a shell variable called cc whose value is the full path file name to the GCC binary.
创建一个shell变量cc,它的值是gcc二进制代码的完整路径文件名。
We use the echo command to accomplish this and save the character in the shell variable 'ht'.
我们使用echo命令实现这点并将字符保存到shell变量‘ht’中。
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 特性,它对脚本调试非常有帮助。
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,可以通过它查看正在使用系统的用户。
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;如果打开这个变量,在用户执行操作时会显示提示,要求用户确认操作。
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 会在文件夹后面加上一个 /字符,这样就更容易区分出文件夹。
The reason that cron processes can't communicate with ssh-agent is that cron jobs are executed as child processes by cron and thus do not inherit the $SSH_AUTH_SOCK shell variable.
cron进程不能与ssh-agent通信的原因是,cron作业是作为 cron 的子进程来执行,这样它们就不会继承 $SSH_AUTH_SOCK。
Consider the example in Listing 18, which sets a shell variable, tests for the value of the variable, and then programmatically executes another command if the value is greater than zero.
比如清单18中的示例,它设置一个shell变量,检查变量的值,如果值大于零,就自动地执行另一个命令。
Consider the example in Listing 18, which sets a shell variable, tests for the value of the variable, and then programmatically executes another command if the value is greater than zero.
比如清单18中的示例,它设置一个shell变量,检查变量的值,如果值大于零,就自动地执行另一个命令。
应用推荐