Uses and functions of the bash shell
bash shell的用法和功能
Download bash and get the resources you need to start working with the bash shell now.
下载bash并获取使用bash shell所需的参考资料。
According to the PPID fields in this list, the ps command is a child of the bash shell.
从该列表的PPID字段中,我们知道ps命令是bash shell的子进程。
Please note that this is done in the bash shell, the default in most Linux distributions.
请注意,这是在bash shell(大多数Linux发行版的默认值)内完成的。
To use a function within your bash shell script, you use the methods shown in Listing 26.
要想在bash shell脚本中使用函数,可以使用清单26 所示的方法。
The Z shell is an enhanced version of the Korn shell with many features found in the bash shell.
Zshell是Korn shell的一个增强版本,具备bash shell的许多特色。
The bash shell lets you redirect standard input, standard output, and standard error on a Linux or UNIX system.
bash shell允许重定向Linux或UNIX系统上的标准输入、标准输出和标准错误。
The bash shell is a free version of the Bourne shell, the first Unix shell, and includes many additional features.
bash shell是Bourne shell的一个免费版本,它是最早的Unix shell,包括许多附加的特点。
But bash shell scripts can act like applications and even perform some of the tasks and jobs that applications can do.
但是,bash shell脚本的行为与应用程序相似,甚至能够执行应用程序可以完成的一些任务和工作。
You should avoid these keywords—or what are known as bash shell reserved words—when choosing names for shell variables.
在为shell变量选择名称时,应该避免使用这些关键词(也称为bash shell保留字)。
The output shows three running processes: an SSH login, which spawned a bash shell, which launched the ps command itself.
输出结果中显示了3个进程,分别是:一个ssh登录进程,它产生了一个bash Shell,而后者启动了ps命令。
Listing 1 shows a bash shell script that you might code to try running the xclock command for a specified period of time.
您将编写清单1所示的bash shell脚本来按照指定的时间段运行xclock命令。
The open source bash shell that this article examines is one of the most powerful, practical, and extensible shells available.
本文讨论的开放源码的bash shell是最强大、最实用、可扩展性最好的 shell 之一。
When a command or the bash shell itself initiates (or spawns) a new shell sub-process to perform a task, it is known as forking.
命令或bash shell本身可能启动(或生成)新的shell子进程以执行某一任务,这称为forking。
Now that you have the basics of bash shell scripting well in hand, you must promise to only use your powers for the greater good.
既然掌握了bash shell脚本编程的基础,就必须善用这种能力。
The user then has a standard command set of programs available to him or her from within your bash shell environment $PATH variable.
在此之后,用户就可以使用bash shell环境变量 $PATH 中指定的标准命令集。
To write effective bash shell scripts, you must master the basic bash command set for navigation and daily routine tasks performed within the shell.
要想编写有效的bash shell脚本,就必须掌握在shell中执行导航和日常任务的基本bash命令集。
Remember to quote these if you are invoking GRUB with parameters from a bash shell, for example, when installing GRUB onto a floppy, USB key, or your MBR.
如果使用这些参数从一个bash shell调用GRUB,例如,在软盘、USB 密匙或您的MBR 上安装 GRUB 时,别忘了使用引号将参数引起来。
In this case, the second process (emacs) was a child of the first (the bash shell), and therefore terminated when the first was killed by the fuser command.
在这里,第二个进程(emacs)是第一个进程(bash shell)的子进程,因此在fuser命令杀死第一个进程时它就会终止。
The bash shell contains two types of commands: builtins, which are internal, and external programs (or external filters and commands), which are typically self-contained binary program files.
bash shell包含两类命令:内部的内置命令和外部程序(或外部筛选器和命令,它们通常是自含的二进制程序文件)。
Running the function-testing Bash shell script.
运行功能测试的Bash shell脚本。
Creating Bash shell scripts for function testing.
创建Bash shell脚本进行功能测试。
Copy the Bash shell scripts and the associated files.
复制Bash shell脚本和相关文件。
Fortunately, the Bash shell has a suspend key, Ctrl-z.
幸好Bash shell有一个暂停键ctrl - z。
Copying the Bash shell scripts into the proper directory.
将Bash shell脚本复制到正确的目录下。
The Bash shell is already installed and configured in your Linux system.
Bash shell脚本已经在Linux系统中安装和配置好了。
The Bash shell completes as much of the filename as it can, and then stops.
Bash shell将尽可能多的完成文件名,然后停止。
This section describes how to run the Bash shell scripts for function testing.
本节描述如何运用Bash shell脚本进行功能测试。
Each recommendation is detailed below along with a Bash shell script for illustration.
下面详细讲述了每一条建议以及用于说明问题的脚本。
In such a case, the Bash shell suspends the process, so that it is no longer executing.
对于这种情况,Bash shell将暂停进程,从而使它停止执行。
应用推荐