• Complain

Arnold Robbins - bash Pocket Reference

Here you can read online Arnold Robbins - bash Pocket Reference full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2010, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    bash Pocket Reference
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2010
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

bash Pocket Reference: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "bash Pocket Reference" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

You need to know how to work with the bash shell if you want to get to the heart of Unix systems, including Linux and Mac OS X. Now covering the most recent version of bash, this concise little book puts all of the essential information about bash at your fingertips. Youll quickly find answers to annoying questions that always come up when youre writing shell scripts -- What characters do you need to quote? How do you get variable substitution to do exactly what you want? How do you use arrays? -- and much more.

Arnold Robbins: author's other books


Who wrote bash Pocket Reference? Find out the surname, the name of the author of the book and a list of all author's works by series.

bash Pocket Reference — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "bash Pocket Reference" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
bash Pocket Reference
Arnold Robbins
Editor
Mike Loukides

Copyright 2010 Arnold Robbins

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (.

Nutshell Handbook, the Nutshell Handbook logo, and the OReilly logo are registered trademarks of OReilly Media, Inc., bash Pocket Reference and related trade dress are trademarks of OReilly Media, Inc.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and OReilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps.

While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

OReilly Media Chapter 1 The Bash Shell This pocket reference covers Bash - photo 1

O'Reilly Media

Chapter 1. The Bash Shell

This pocket reference covers Bash, particularly version 4.1, the primary shell for GNU/Linux and Mac OS X. Bash is available for Solaris and the various BSD systems, and can be easily compiled for just about any other Unix system. The following topics are covered:

  • History

  • Overview of features

  • Invoking the shell

  • Syntax

  • Functions

  • Variables

  • Arithmetic expressions

  • Command history

  • Programmable completion

  • Job control

  • Shell options

  • Command execution

  • Coprocesses

  • Restricted shells

  • Built-in commands

  • Resources

Conventions

Filenames, command names, options and inline examples are shown in constantwidth. Input that a user should type in exactly as-is is shown in constantwidthuserinput. Items which should be replaced with real data in examples and syntax descriptions are shown in constantwidthreplaceable. New terms and emphasized items are shown in italics . Finally, references of the form name (N) refer to the manual page for name in section N of the online manual (accessed via the man command).

History

The original Bourne shell distributed with V7 Unix in 1979 became the standard shell for writing shell scripts. The Bourne shell is still found in /bin/sh on many commercial Unix systems . It has not changed that much since its initial release, although it has seen modest enhancements over the years. The most notable new features added were the CDPATH variable and a built-in test command with System III (circa 1980), command hashing and shell functions for System V Release 2 (circa 1984), and the addition of job control features for System V Release 4 (1989).

Because the Berkeley C shell ( csh ) offered features that were more pleasant for interactive use, such as command history and job control, for a long time the standard practice in the Unix world was to use the Bourne shell for programming and the C shell for daily use. David Korn at Bell Labs was the first developer to enhance the Bourne shell by adding csh -like features to it: history, job control, and additional programmability. Eventually, the Korn shells feature set surpassed both that of the Bourne and C shells, while remaining compatible with the former for shell programming. Today, the POSIX standard defines the standard shell language and behavior based on the System V Bourne shell, with a selected subset of features from the Korn shell.

The Free Software Foundation, in keeping with its goal to produce a complete Unix work-alike system, developed a clone of the Bourne shell, written from scratch, named Bash, the Bourne-Again SHell. Over time, Bash has become a POSIX-compliant version of the shell with many additional features overlapping those of the Korn shell, but Bash is not an exact Korn shell clone. Today, Bash is arguably the most widely used Bourne-derived shell.

Overview of Features

The Bash shell provides the following features:

  • Input/output redirection

  • Wildcard characters for filename abbreviation

  • Shell variables and options for customizing the environment

  • A built-in command set for writing shell programs

  • Shell functions, for modularizing tasks within a shell program

  • Job control

  • Command-line editing (using the command syntax of either vi or Emacs)

  • Access to previous commands (command history)

  • Integer arithmetic

  • Arrays and arithmetic expressions

  • Command-name abbreviation (aliasing)

  • Upwards compliance with POSIX

  • Internationalization facilities

  • An arithmetic for loop

Invoking the Shell

The command interpreter for the Bash shell ( bash ) can be invoked as follows:

bash [options] [arguments]

Bash can execute commands from a terminal, from a file (when the first argument is a script), or from standard input (if no arguments remain or if -s is specified). The shell automatically prints prompts if standard input is a terminal, or if -i is given on the command line.

On many systems, /bin/sh is a link to Bash. When invoked as sh , Bash acts more like the traditional Bourne shell: login shells read /etc/profile and ~/.profile, and regular shells read $ENV, if it is set. Full details are available in the bash (1) manpage .

Options
-cstr

Read commands from string str .

-D, --dump-strings

Print all $"" strings in the program.

-i

Create an interactive shell (prompt for input).

-l, --login

Shell is a login shell.

-Ooption

Enable shopt option option . Use +O to unset option .

-p

Start up as a privileged user. Do not read $ENV or $BASH_ENV ; do not import functions from the environment; and ignore the values of the BASHOPTS, CDPATH, GLOBIGNORE, and SHELLOPTS variables. The normal fixed-name startup files (such as $HOME/.bash_profile) are read.

-r, --restricted

Create a restricted shell.

-s

Read commands from standard input. Output from built-in commands goes to file descriptor 1; all other shell output goes to file descriptor 2.

--debugger

Read the debugging profile at startup and turn on the extdebug option to shopt . For use by the Bash debugger (see http://bashdb.sourceforge.net).

--dump-po-strings

Same as -D, but output in GNU

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «bash Pocket Reference»

Look at similar books to bash Pocket Reference. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «bash Pocket Reference»

Discussion, reviews of the book bash Pocket Reference and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.