- 论坛徽章:
- 0
|
4.2.5 执行命令
典型的命令执行方法是使用如下shell命令行序列:
$ LC_ALL=fr ls -la
在此,ls程序在前台执行环境变量LC_ALL设置为fr Here, program ls is executed in the foreground job with the environment variable LC_ALL set to fr for French and the command line argument set to -la for listing everything in detail. If the command line is post-fixed by & sign then the command is executed in the background job. The background job allows user to run multiple programs in a single shell.
The execution of the command can be managed by following key strokes.
Ctrl-C: 中止程序
Ctrl-Z: 暂停程序
Ctrl-S: 停止屏幕输出
Ctrl-Q: 恢复屏幕输出
Ctrl-Alt-Del: 重启/关闭系统(参阅/etc/inittab)
有关如何管理程序运行,可参阅bash(1)中的jobs、fg、bg和kill。
来自 debian参考手册 |
|