The latest edition of this bestselling reference brings Unix into the 21st century. It's been reworked to keep current with the broader state of Unix in today's world and highlight the strengths of this operating system in all its various flavors.
Detailing all Unix commands and options, the informative guide provides generous descriptions and examples that put those commands in context. Here are some of the new features you'll find in Unix in a Nutshell, Fourth Edition:
As Unix has progressed, certain commands that were once critical have fallen into disuse. To that end, the book has also dropped material that is no longer relevant, keeping it taut and current.
If you're a Unix user or programmer, you'll recognize the value of this complete, up-to-date Unix reference. With chapter overviews, specific examples, and detailed command.
After a quick review of Unix utilities, the book’s authors take you step-by-step through the process of building shell scripts, debugging them, and understanding how they work within the shell’s environment. All major features of the shell are covered, and the large number of practical examples make it easy for you to build shell scripts for your particular applications. The book also describes the major features of the Korn and Bash shells.
Learn how to…Take advantage of the many utilities provided in the Unix system Write powerful shell scripts Use the shell’s built-in decision-making and looping constructs Use the shell’s powerful quoting mechanisms Make the most of the shell’s built-in history and command editing capabilities Use regular expressions with Unix commands Take advantage of the special features of the Korn and Bash shells Identify the major differences between versions of the shell language Customize the way your Unix system responds to you Set up your shell environment Make use of functions Debug scripts
Contents at a Glance
1 A Quick Review of the Basics
2 What Is the Shell?
3 Tools of the Trade
4 And Away We Go
5 Can I Quote You on That?
6 Passing Arguments
7 Decisions, Decisions
8 ‘Round and ‘Round She Goes
9 Reading and Printing Data
10 Your Environment
11 More on Parameters
12 Loose Ends
13 Rolo Revisited
14 Interactive and Nonstandard Shell Features
A Shell Summary
B For More Information
Learn to use Unix, OS X, or Linux quickly and easily!
In just 24 lessons of one hour or less, Sams Teach Yourself Unix in 24 Hours helps you get up and running with Unix and Unix-based operating systems such as Mac OS X and Linux.
Designed for beginners with no previous experience using Unix, this book’s straightforward, step-by-step approach makes it easy to learn.
Each lesson clearly explains essential Unix tools and techniques from the ground up, helping you to become productive as quickly and efficiently as possible.
Step-by-step instructions carefully walk you through the most common Unix tasks. Practical, hands-on examples show you how to apply what you learn. Quizzes and exercises help you test your knowledge and stretch your skills. Notes and tips point out shortcuts and solutions
Learn how to…
Pick the command shell that’s best for you Organize the Unix file system (and why) Manage file and directory ownership and permissions Maximize your productivity with power filters and pipes Use the vi and emacs editors Create your own commands and shell scripts Connect to remote systems using SSH and SFTP Troubleshoot common problems List files and manage disk usage Get started with Unix shell programming Set up printing in a Unix environment Archive and back up files Search for information and files Use Perl as an alternative Unix programming language Set up, tweak, and make use of the GNOME graphical environment Contents at a Glance
HOUR 1: What Is This Unix Stuff?
HOUR 2: Getting onto the System and Using the Command Line
HOUR 3: Moving About the File System
HOUR 4: Listing Files and Managing Disk Usage
HOUR 5: Ownership and Permissions
HOUR 6: Creating, Moving, Renaming, and Deleting Files and Directories
HOUR 7: Looking into Files
HOUR 8: Filters, Pipes, and Wildcards!
HOUR 9: Slicing and Dicing Command-Pipe Data
HOUR 10: An Introduction to the vi Editor
HOUR 11: Advanced vi Tricks, Tools, and Techniquess
HOUR 12: An Overview of the emacs Editor
HOUR 13: Introduction to Command Shells
HOUR 14: Advanced Shell Interaction
HOUR 15: Job Control
HOUR 16: Shell Programming Overview
HOUR 17: Advanced Shell Programming
HOUR 18: Printing in the Unix Environment
HOUR 19: Archives and Backups
HOUR 20: Using Email to Communicate
HOUR 21: Connecting to Remote Systems Using SSH and SFTP
HOUR 22: Searching for Information and Files
HOUR 23: Perl Programming in Unix
HOUR 24: GNOME and the GUI Environment
Appendix A: Common Unix Questions and Answers
Which is why we created Linux Server Hacks, Volume Two, a second collection of incredibly useful tips and tricks for finding and using dozens of open source tools you can apply to solve your sys admin problems. The power and flexibility of Linux and Open Source means that there is an astounding amount of great software out there waiting to be applied to your sys admin problems -- if only you knew about it and had enough information to get started. Hence, Linux Server Hacks, Volume Two.
This handy reference offers 100 completely new server management tips and techniques designed to improve your productivity and sharpen your administrative skills. Each hack represents a clever way to accomplish a specific task, saving you countless hours of searching for the right answer. No more sifting through man pages, HOWTO websites, or source code comments -- the only resource you need is right here. And you don't have to be a system administrator with hundreds of boxen to get something useful from this book as many of the hacks apply equally well to a single system or a home network.
Compiled by experts, these hacks not only give you the step-by-step instructions necessary to implement the software, but they also provide the context to truly enable you to learn the technology. Topics include:AuthenticationRemote GUI connectivityStorage managementFile sharing and synchronizing resourcesSecurity/lockdown instructionLog files and monitoringTroubleshootingSystem rescue, recovery, and repair
Whether they help you recover lost data, collect information from distributed clients, or synchronize administrative environments, the solutions found in Linux Server Hacks, Volume Two will simplify your life as a system administrator.
In this thoroughly revised edition, author and gawk lead developer Arnold Robbins describes the awk language and gawk program in detail, shows you how to use awk and gawk for problem solving, and then dives into specific features of gawk. System administrators, programmers, webmasters, and other power users will find everything they need to know about awk and gawk. You will learn how to:Format text and use regular expressions in awk and gawkProcess data using awk's operators and built-in functionsManage data relationships using associative arraysDefine your own functions"Think in awk" with two full chapters of sample functions and programsTake advantage of gawk's many advanced featuresDebug awk programs with the gawk built-in debuggerExtend gawk by writing new functions in C or C++
This book is published under the terms of the GNU Free Documentation License. You have the freedom to copy and modify this GNU manual.
Royalties from the sales of this book go to the Free Software Foundation and to the author.