bashpocketreference_2ndedition.pdf

(2554 KB) Pobierz
Bash
Pocket
Reference
HELP FOR POWER USERS & SYS ADMINS
Arnold Robbins
2n
d
Ed
iti
on
SECOND EDITION
Bash Pocket Reference
Arnold Robbins
Bash Pocket Reference
by Arnold Robbins
Copyright © 2016 Arnold Robbins. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebasto‐
pol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promo‐
tional use. Online editions are also available for most titles (http://safaribook‐
sonline.com).
For more information, contact our corporate/institutional sales
department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Andy Oram
Production Editor:
Kristen Brown
Proofreader:
Jasmine Kwityn
Indexer:
Arnold Robbins
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
March 2016:
2016-02-17:
Second Edition
First Release
for
release
Revision History for the Second Edition
See
http://oreilly.com/catalog/errata.csp?isbn=9781491941591
details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Bash
Pocket Reference,
the cover image, and related trade dress are trademarks of
O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that
the information and instructions contained in this work are accurate, the
publisher and the author disclaim all responsibility for errors or omissions,
including without limitation responsibility for damages resulting from the use
of or reliance on this work. Use of the information and instructions contained
in this work is at your own risk. If any code samples or other technology this
work contains or describes is subject to open source licenses or the intellec‐
tual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-94159-1
[M]
Table of Contents
The Bash Shell
Conventions
History
Overview of Features
Invoking the Shell
Command Exit Status
Syntax
Functions
Variables
Arithmetic Expressions
Command History
Programmable Completion
Job Control
Shell Options
Command Execution
Coprocesses
Restricted Shells
Built-In Commands
Resources
Acknowledgments
Acknowledgments from the First Edition
Index
1
2
2
3
4
6
7
23
25
47
49
54
59
60
66
68
69
70
133
134
134
135
iii
Zgłoś jeśli naruszono regulamin