Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $49.99
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
56Activity

Table Of Contents

Looking into the Linux kernel
The GNU utilities
The Linux desktop environment
Linux Distributions
Core Linux distributions
Core Linux Distributions
Specialized Linux distributions
Specialized Linux Distributions
The Linux LiveCD
Summary
Terminal Emulation
Graphicscapabilities
The keyboard
The terminfo Database
The Linux Console
The xterm Terminal
Command lineparameters
The xterm main menu
The VT options menu
The VT fonts menu
The Konsole Terminal
Sessions
The menu bar
The GNOME Terminal
The command line parameters
Tabs
Starting the Shell
The Shell Prompt
The bash Manual
Filesystem Navigation
The Linux filesystem
Traversing directories
File and Directory Listing
Basic listing
Modifying the information presented
The complete parameter list
File Handling
Creating files
Copyingfiles
Linkingfiles
Renamingfiles
Deletingfiles
Directory Handling
Creating directories
Deletingdirectories
Viewing File Contents
Viewingfile statistics
Viewingthe file type
Viewingparts of a file
Monitoring Programs
Peeking at the processes
Real-time process monitoring
Searching for data
Compressing data
Archiving data
What Are Environment Variables?
Globalenvironment variables
Local environment variables
Setting Environment Variables
Setting local environment variables
Setting global environment variables
Removing Environment Variables
Default Shell Environment Variables
Setting the PATH Environment Variable
Locating System Environment Variables
Login shell
Interactive shell
Non-interactive shell
Variable Arrays
Using Command Aliases
Linux Security
The /etc/passwd file
The /etc/shadow file
Adding a new user
Removing a user
Modifying a user
Using Linux Groups
The /etc/group file
Creating new groups
Modifying groups
Decoding File Permissions
Using file permission symbols
Default file permissions
Changing Security Settings
Changing permissions
Changing ownership
Sharing Files
The vim Editor
The basics of vim
Copyand paste
Search and substitute
The emacs Editor
Usingemacs on the console
Usingemacs in X Windows
The KDE Family of Editors
The KWrite editor
The Kate editor
The GNOME Editor
Starting gedit
Basicgedit features
Setting preferences
Using Multiple Commands
Creating a Script File
Displaying Messages
Using Variables
Environment variables
User variables
The backtick
Redirecting Input and Output
Output redirection
Input redirection
Pipes
Performing Math
The expr command
Using brackets
A floating-point solution
Exiting the Script
Checking the exit status
The exit command
Working with the if-then Statement
The if-then-else Statement
Nesting ifs
The test Command
■ Numeric comparisons
Numeric comparisons
String comparisons
File comparisons
Compound Condition Testing
Advanced if-then Features
Using double parentheses
Using double brackets
The case Command
The for Command
Reading values in a list
Reading complex values in a list
Reading a list from a variable
Reading values from a command
Changing the field separator
Reading a directory using wildcards
The C-Style for Command
The C language for command
Using multiple variables
The while Command
Basic while format
Using multiple test commands
The until Command
Nesting Loops
Looping on File Data
Controlling the Loop
The break command
The continue command
Processing the Output of a Loop
Using command line parameters
Command Line Parameters
Reading parameters
Reading the program name
Testing parameters
Special Parameter Variables
Counting parameters
Grabbing all the data
Being Shifty
Working With Options
Finding your options
Using the getopt command
The more advanced getopts
Standardizing Options
Getting User Input
Basic reading
Timing out
Silent reading
Reading from a file
Understanding Input and Output
Standard file descriptors
Redirecting errors
Redirecting Output in Scripts
Temporary redirections
Permanent redirections
Redirecting Input in Scripts
Creating Your Own Redirection
Creating output file descriptors
Redirecting file descriptors
Creating input file descriptors
Creating a read/write file descriptor
Closing file descriptors
Removinga trap
Running Scripts in Background Mode
Runningin the background
Runningmultiplebackground jobs
Exitingthe terminal
Running Scripts without a Console
Job Control
Restarting stopped jobs
Being Nice
The nice command
The renice command
Running Like Clockwork
Schedulinga job usingthe at command
Usingthe batch command
Schedulingregular scripts
Start At the Beginning
Starting your scripts at boot
Starting with a new shell
Basic Script Functions
Creating a function
Usingfunctions
Returning a Value
The default exit status
Usingthe return command
Usingfunction output
Using Variables in Functions
Passingparameters to a function
Handlingvariables in a function
Array Variables and Functions
Passingarrays to functions
Returning arrays from functions
Function Recursion
Creating a Library
Using Functions on the Command Line
Creating functions on the command line
Definingfunctionsin the .bashrc file
Creating text menus
Creating Text Menus
Create the menu layout
Create the menu functions
Addthe menu logic
Putting it all together
Usingthe select command
Adding Color
The dialogoptions
Getting Graphic
The KDE environment
The GNOME environment
Text Manipulation
The sed editor
The sed Editor Basics
More substitution options
Usingaddresses
Deletinglines
Inserting and appendingtext
Changinglines
The transform command
Printingrevisited
What Are Regular Expressions?
A definition
Types of regular expressions
Defining BRE Patterns
Special characters
Anchor characters
The dot character
Character classes
Negating character classes
Special character classes
BRE Special Character Classes
The asterisk
Extended Regular Expressions
The question mark
The plus sign
The pipe symbol
Groupingexpressions
Regular Expressions in Action
Countingdirectory files
Validatinga phone number
Parsing an e-mail address
Multiline Commands
The next commands
The multiline delete command
The multiline print command
The Hold Space
Negating a Command
Changing the Flow
Branching
Testing
Pattern Replacement
The ampersand
Replacing individual words
Using sed in Scripts
Using wrappers
Redirecting sed output
Creating sed Utilities
Double spacing lines
Double spacing files that may have blanks
Numbering lines in a file
Printing last lines
Deleting lines
Removing HTML tags
Built-in variables
User-defined variables
Working with Arrays
Definingarray variables
Iterating through array variables
Deletingarray variables
Using Patterns
Regular expressions
The matching operator
Mathematical expressions
Structured Commands
The if statement
The whilestatement
The do-whilestatement
The for statement
Formatted Printing
Built-in Functions
Mathematical functions
String functions
Time functions
User-Defined Functions
Defininga function
Usingyour functions
Creating a function library
What Is the ash Shell?
The Original ash Shell
The Original ash command line parameters
The original ash built-in commands
The ash shell files
The dash Shell
The dash command line parameters
The dash environment variables
The dash built-in commands
Scripting in dash
Creating ash and dash scripts
Things that won’t work
What Is the tcsh Shell?
The tcsh Shell Components
The tcsh command line parameters
The tcsh files
The tcsh login files
Shell startup files
The logout files
The tcsh environment variables
■ Shell variables
Shell variables
Setting variables in tcsh
Using the set command
Using the setenv command
The tcsh built-in commands
Scripting in tcsh
Working with variables
Array variables
Handling mathematical operations
Structured commands
The if statements
The foreach statement
The while statement
The switch command
The Korn Shell History
The Parts of the ksh93 Shell
Command line parameters
Default files
Built-in commands
Scripting in the ksh93 Shell
Mathematical operations
Command redirection
Discipline functions
History of the zsh Shell
Parts of the zsh Shell
Shell options
The zsh shell files
Core built-in commands
Scripting with zsh
Functions
The MySQL Database
Installing MySQL
Completing the MySQL configuration
The MySQL client interface
Creating MySQL database objects
The PostgreSQL Database
Installing PostgreSQL
The PostgreSQL command interface
Creating PostgreSQL database objects
Working with Tables
Creating a table
Inserting and deleting data
Querying data
Using the Database in Your Scripts
Connecting to the databases
Sending commands to the server
Formatting data
The Lynx Program
Installing Lynx
The lynx command line
The Lynx configuration file
The Lynx environment variables
Capturing data from Lynx
The cURL Program
Installing cURL
The cURL command line
Exploring with curl
Networking with zsh
The TCP module
The client/server paradigm
Client/server programming with zsh
The Basics of Linux E-Mail
E-Mail in Linux
The Mail Transfer Agent
The Mail Delivery Agent
The Mail User Agent
Setting Up Your Server
sendmail
Postfix
Sending a Message with Mailx
The Mutt Program
Installing Mutt
The Mutt command line
Using Mutt
Monitoring System Statistics
Monitoringdisk free space
Catchingdisk hogs
Watching CPU and memory usage
Performing Backups
Archivingdata files
Storing backups off-site
Built-In Commands
Bash Commands
Environment Variables
The sed Editor
Starting the sed editor
sed commands
The gawk program
The gawk command format
The gawk variables
The gawk program features
Variables
The if-then, while, and until statements
Mathematical Operations
P. 1
Linux Command Line and Shell Scripting Bible

Linux Command Line and Shell Scripting Bible

Ratings: (0)|Views: 13,219|Likes:
Published by Wiley
There's a lot to be said for going back to basics. Not only does this Bible give you a quick refresher on the structure of open-source Linux software, it also shows you how to bypass the hefty graphical user interface on Linux systems and start interacting the fast and efficient way?with command lines and automated scripts. You'll learn how to manage files on the filesystem, start and stop programs, use databases, even do Web programming?without a GUI?with this one-stop resource.
There's a lot to be said for going back to basics. Not only does this Bible give you a quick refresher on the structure of open-source Linux software, it also shows you how to bypass the hefty graphical user interface on Linux systems and start interacting the fast and efficient way?with command lines and automated scripts. You'll learn how to manage files on the filesystem, start and stop programs, use databases, even do Web programming?without a GUI?with this one-stop resource.

More info:

Publish date: Aug 4, 2008
Added to Scribd: Jan 27, 2010
Copyright:Traditional Copyright: All rights reservedISBN:9780470386002
List Price: $49.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

06/16/2014

842

9780470386002

$49.99

USD

You're Reading a Free Preview
Pages 17 to 20 are not shown in this preview.
You're Reading a Free Preview
Pages 37 to 131 are not shown in this preview.
You're Reading a Free Preview
Pages 148 to 356 are not shown in this preview.
You're Reading a Free Preview
Pages 373 to 423 are not shown in this preview.
You're Reading a Free Preview
Pages 440 to 842 are not shown in this preview.

Activity (56)

You've already reviewed this. Edit your review.
fuckyouyousuck liked this
Jon Champaigne liked this
1 thousand reads
1 hundred reads
sankumi liked this
Aquib liked this
pulit01 liked this
Shekhar Tiwari liked this
GLAFT liked this
GLAFT liked this

You're Reading a Free Preview

Download