标签归档:bash

GNU Bourne-Again SHell Manpage

BASH

Section: User Commands (1)
Updated: 2006 September 28
IndexReturn to Main Contents


 

NAME

bash – GNU Bourne-Again SHell  

SYNOPSIS

bash [options] [file]  

COPYRIGHT

Bash is Copyright (C) 1989-2005 by the Free Software Foundation, Inc.  

DESCRIPTION

Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh). 继续阅读

Bash Reference Manual

Table of Contents

  • 1 Introduction
    • 1.1 What is Bash?
    • 1.2 What is a shell?
  • 2 Definitions
  • 3 Basic Shell Features
    • 3.1 Shell Syntax
      • 3.1.1 Shell Operation
      • 3.1.2 Quoting
        • 3.1.2.1 Escape Character
        • 3.1.2.2 Single Quotes
        • 3.1.2.3 Double Quotes
        • 3.1.2.4 ANSI-C Quoting
        • 3.1.2.5 Locale-Specific Translation
      • 3.1.3 Comments
    • 3.2 Shell Commands
      • 3.2.1 Simple Commands
      • 3.2.2 Pipelines
      • 3.2.3 Lists of Commands
      • 3.2.4 Compound Commands
        • 3.2.4.1 Looping Constructs
        • 3.2.4.2 Conditional Constructs
        • 3.2.4.3 Grouping Commands

        继续阅读

Bash 实例

级别: 初级
Daniel Robbins (drobbins@gentoo.org), 总裁兼 CEO, Gentoo Technologies, Inc.
2000 年 3 月 01 日
通 过学习如何使用 bash 脚本语言编程,将使 Linux 的日常交互更有趣和有生产力,同时还可以利用那些已熟悉和喜爱的标准 UNIX 概念(如管 道和重定向)。在此三部分系列中,Daniel Robbins 将以示例指导您如何用 bash 编程。他将讲述非常基本的知识(这使此系列十分适合初 学者),并在后续系列中逐步引入更高级特性。 继续阅读

系统管理员工具包: 充分利用 bash

系统管理员工具包: 充分利用 bash

级别: 中级
自由撰稿人, Consultant
2007 年 1 月 08 日
通 过利用 Bourne-again shell (bash) 的重要组成部分及其功能来简化系统管理任务。Bash 是一个流行的 Shell,是对原 始 Bourne 和 Korn Shell 的替代。它提供了印象深刻的系列附加功能,其中包括对脚本环境的改进、广泛的别名技术和用于自动完成各种命 令、文件和路径的改进方法。
关于本系列
典型的 UNIX® 管理员拥有一套经常用于辅助管理过程的关键实用工具、诀窍和系统。存在各种用 于简化不同过程的关键实用工具、命令行链和脚本。其中一些工具来自于操作系统,而大部分的诀窍则来源于长期的经验积累和减轻系统管理员工作压力的要求。本 系列文章主要专注于最大限度地利用各种 UNIX 环境中可用的工具,包括简化异构环境中的管理任务的方法。 继续阅读

在 Bash shell 中工作

在 Bash shell 中工作
简介
级别: 中级
Robert J. Brunner (rb@ncsa.uiuc.edu), NCSA 研究专家,天文学助理教授, University of Illinois, Urbana-Champaign
2006 年 8 月 10 日
获 得关于 Bash shell 的简介,您可以在几乎任何基于 UNIX® 的操作系统中使用 Bash shell。Bash 是一种成熟的、功能强大 而易于使用的 shell,并且可以免费获得。本教程提供了 Bash 的简史,以此说明了 Bash shell 和其他一些常用 的 UNIX shell 之间的区别,并且还提供了 Bash 中可用的主要特性的概述。然后,您将了解更多关于 UNIX 文件系统的知识,如何使用 目录和文件,以及自定义 Bash 的外观和行为的几种方法。最后,本教程以对 Bash 的作业控制功能的讨论作为全文的结束。
开始之前了解本教程中包含的内容以及如何最好地利用本教程。 继续阅读