Linux Command Line and Shell Scripting Bible

Linux Command Line and Shell Scripting Bible

Christine Bresnahan

Language: English

Pages: 816

ISBN: 111898384X

Format: PDF / Kindle (mobi) / ePub


Talk directly to your system for a faster workflow with automation capability

Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability. This third edition incorporates thirty pages of new functional examples that are fully updated to align with the latest Linux features. Beginning with command line fundamentals, the book moves into shell scripting and shows you the practical application of commands in automating frequently performed functions. This guide includes useful tutorials, and a desk reference value of numerous examples.

The Linux command line allows you to type specific shell commands directly into the system to manipulate files and query system resources. Command line statements can be combined into short programs called shell scripts, a practice increasing in popularity due to its usefulness in automation. This book is a complete guide providing detailed instruction and expert advice working within this aspect of Linux.

  • Write simple script utilities to automate tasks
  • Understand the shell, and create shell scripts
  • Produce database, e-mail, and web scripts
  • Study scripting examples ranging from basic to advanced

Whether used as a tutorial or as a quick reference, this book contains information that every Linux user should know. Why not learn to use the system to its utmost capability? Linux is a robust system with tremendous potential, and Linux Command Line and Shell Scripting Bible opens the door to new possibilities.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Environment variables ...............................................................................................619 Built-in commands ....................................................................................................625 Scripting with zsh ............................................................................................................... 631 Mathematical operations ...........................................................................................631

bootup. On Linux systems this table is usually located in the special file /etc/inittabs. The Linux operating system uses an init system that utilizes run levels. A run level can be used to direct the init process to run only certain types of processes, as defined in the /etc/inittabs file. There are five init run levels in the Linux operating system. At run level 1, only the basic system processes are started, along with one console terminal process. This is called single user mode. Single user

codes, allowing you to use color in your scripts (discussed in Chapter 15). Figure 2-3 shows what the basic xterm display looks like running on a graphical Linux desktop. The xterm package allows you to set individual features using both command line parameters and a series of four simple graphical menus. The following sections discuss these features and how to change them. Command line parameters The list of xterm command line parameters is extensive. There are lots of features you can control

Recently, Linux developers have combined the two ps command formats into a single ps program (and of course added their own touches). The GNU ps command that’s used in Linux systems supports three different types of command line parameters: ■ Unix-style parameters, which are preceded by a dash ■ BSD-style parameters, which are not preceded by a dash ■ GNU long parameters, which are preceded by a double dash The following sections examine the three different parameter types and show examples of

li total 989292 360621 drwxrwxr-x 2 rich rich 301871 drwxr-xr-x 4 rich rich 301875 drwxr-xr-x 2 rich rich 301872 drwxr-xr-x 2 rich rich 360207 drwxrwxr-x 2 rich rich 327362 drwxrwxr-x 2 rich rich 301876 drwxr-xr-x 2 rich rich 301942 -rw-rw-r-- 1 rich rich 301963 -rw-rw-r-- 1 rich rich 301974 -rwxr--r-- 1 rich rich 301877 drwxr-xr-x 2 rich rich 301874 drwxr-xr-x 2 rich rich 360262 drwxrwxr-x 5 rich rich 4096 2007-08-24 22:04 4rich 4096 2007-09-18 08:38 Desktop 4096 2001-11-01 01:10 Documents 4096

Download sample

Download