000 | 08962nam a2200145Ia 4500 | ||
---|---|---|---|
020 | _a0070446873 | ||
082 |
_a005.43 _bDAS |
||
100 | _aDas, Sumitabha | ||
245 | _aYour unix : the ultimate guide | ||
260 |
_aNew Delhi _bTata McGraw Hill Pub. Co. Ltd. _c2009 |
||
300 | _aliv,918p.Shell: The Initialization Files (.profile and ENV) 526 17.9.6 bash: The Initialization Files (.bash_profile,bash_logout and .bashrc) 527 Summary 529 Self-Test 531 Exercises 532 Key Terms 533 18 Shell Programming 535 18.1 Shell Variables 536 18.2 Shell Scripts 537 18.3 read: Making Scripts Interactive 539 18.3.1 Redirecting read Input 540 18.4 Positional Parameters 540 18.5 Exit Status of a Command 542 18.5.1 The Parameter 543 18.6 The Logical Operators && and ||-Conditional Execution 543 18.7 exit: Script Termination 544 18.8 The if Conditional 545 18.8.1 if-elif: Multiway Branching 547 18.9 test and []: Companions of if 548 18.9.1 Numeric Comparison 548 18.9.2 String Comparison 551 18.9.3 test: File Tests 553 18.10 The case Conditional 555 18.10.1 Matching Multiple Patterns 556 18.10.2 Wild Cards: case Uses Them 557 18.11 expr: Computation and String Handling 558 18.11.1 The Arithmetic Functions 558 18.11.2 String Handling 559 18.12 : Calling a Script with Different Names 560 18.13 sleep and wait 561 18.14 while and until: Looping 562 18.14.1 Using while to Wait for a File 563 18.14.2 Finding Out Users' Space Consumption 563 18.14.3 Setting Up an Infinite Loop 565 18.14.4 until: while's Complement 565 18.15 Two Sample Scripts 566 18.15.1 cpback.sh: Backing Up a File with a Numeric Extension 566 18.15.2 dentry1.sh: A Data Entry Script 567 18.16 for: Looping with a List 568 18.16.1 List from Filenames and Wild Cards 570 18.16.2 List from Positional Parameters 570 18.16.3 : Another Special Parameter 571 18.16.4 basename: Changing Filename Extensions 572 18.17 cpback2.sh: The Final Script 573 Summary 574 Self-Test 576 Exercises 576 Key Terms 578 19 Advanced Shell Programming Including Korn and bash 579 19.1 set: Assigning Values to Positional Parameters 580 19.1.1 The IFS Variable: set's Default Delimiter 581 19.1.2 shift: Shifting Arguments Left 582 19.1.3 set --: Helps Command Substitution 583 19.1.4 Using set to Find Out Free Disk Space 583 19.2 The Here Document (<<)584 19.2.1 Using the Here Document with Interactive Programs 584 19.3 let: Computation-A Second Look (ksh and bash) 585 19.4 Redirection-A Second Look 586 19.4.1 Redirection at Keywords 586 19.4.2 Merging Streams (1>&2) 587 19.4.3 Saving Error Messages and Output in the Same File (2>&1) 588 19.5 user_details.sh: A Script to List User Details 588 19.6 Problems with Sub-Shells 590 19.6.1 export: Exporting Shell Variables 590 19.6.2 Command Grouping 591 19.7 Arrays (ksh and bash) 592 19.8 String Handling (ksh and bash) 594 19.8.1 Extracting a String by Pattern Matching 595 19.9 Conditional Parameter Substitution 596 19.10 Shell Functions 597 19.11 Devising Shell Functions 598 19.11.1 Generating a Filename from the System Date 599 19.11.2 To Continue or Not to Continue 599 19.11.3 Validating Data Entry 600 19.12 eval: Evaluating Twice 601 19.13 createuser.sh: Using eval to Create a User 603 19.14 The exec Statement 604 19.14.1 Effecting Redirection in the Current Shell 605 19.15 set -x: Debugging Shell Scripts 607 19.16 trap: Interrupting a Program 608 Summary 609 Self-Test 610 Exercises 610 Key Terms 612 20 perl-The Master Manipulator 613 20.1 perl Preliminaries 614 20.2 chop(): Removing the Last Character 615 20.3 Variables and Operators 616 20.3.1 The Concatenation Operators . and x 617 20.4 The String Handling Functions 617 20.5 Specifying Filenames in Command Line 618 20.6 : The Default Variable 619 20.7 Current Line Number () and the Range Operator (..)620 20.8 Lists and Arrays 620 20.9 ARGV[ ]: Command Line Arguments 622 20.10 foreach: Looping Through a List 623 20.11 split(): Splitting into a List 624 20.12 join(): Joining a List 625 20.13 Modifying Array Contents 626 20.14 Associative Arrays 627 20.14.1 Counting Number of Occurrences 629 20.15 Regular Expressions and Substitution 629 20.15.1 The s and tr Functions 629 20.15.2 The IRE and TRE Features 631 20.15.3 Editing Files In-Place 632 20.16 File Handling 632 20.17 File Tests 633 20.18 Subroutines 634 20.19 Conclusion 636 20.20 CGI Programming with perl-An Overview 636 20.20.1 Understanding the HTML Form 636 20.20.2 The Query String 37 20.20.3 GET and POST: The Request Method 638 20.21 Handling Form Data 639 20.21.1 Creating the Subroutines for Header and Footer 20.21.2 emp_add.pl: The Main CGI Program 640 20.21.3 The Parse Subroutine 640 20.21.4 emp_query.pl: The Query Program 642 Summary 643 Going Further 644 Self-Test 644 Exercises 645 Going Further 646 Key Terms 646 21 System Administration I-The File System Revisited 647 21.1 The Device 648 21.1.1 Block and Character Devices 648 21.1.2 Major and Minor Numbers 649 21.2 Significance of Device Names 649 21.3 The Hard Disk 651 21.4 Partitions and File Systems 652 21.4.1 Partitions 652 21.4.2 File Systems 652 21.4.3 Devices for File Systems 653 21.5 File System Components 654 21.5.1 Inode Blocks 654 21.5.2 Data Blocks 655 21.5.3 The Block Addressing Scheme 656 21.5.4 The Superblock 656 21.5.5 The Boot Block 657 21.6 The Directory 658 21.6.1 How the Kernel Accesses a File658 21.7 The Standard File Systems 659 21.8 File System Types 659 21.9 Creating Partitions and File Systems 660 21.9.1 fdisk: Creating Partitions 660 21.9.2 mkfs: Creating File Systems 662 21.10 File System Mounting and Unmounting 663 21.10.1 mount: Mounting File Systems 663 21.10.2 umount: Unmounting File Systems 664 21.10.3 mount Options (-o) and /etc/fstab 665 21.11 fsck: File System Checking 666 21.11.1 The Problem with sync 668 Summary 668 Self-Test 669 Exercises 669 Key Terms 670 22 System Administration II-The General Duties 671 22.1 root: The System Administrator's Login 672 22.1.1 su: Acquiring Super User Status 672 22.2 The Administrator's Privileges 673 22.2.1 passwd: Changing Any Password 674 22.2.2 date: Setting the System Date 674 22.2.3 wall and calendar: Communicating with Users 675 22.2.4 ulimit: Setting Limits on File Size 675 22.3 Maintaining User Accounts 675 22.3.1 groupadd: Adding a Group 676 22.3.2 useradd: Adding a User 677 22.3.3 /etc/passwd and /etc/shadow: User Profiles 677 22.3.4 usermod and userdel: Modifying and Removing Users 678 22.4 Maintaining Security 679 22.4.1 Set-User-Id-Power for a Moment 679 22.4.2 The Sticky Bit 679 22.4.3 Restricted Shell 680 22.5 Booting 681 22.5.1 init: The Prime Mover 681 22.5.2 init Run Levels 682 22.5.3 /etc/inittab: init's Startup File 682 22.6 Shutdown 684 22.6.1 Allowing a User to Only Shut Down 685 22.7 Handling Floppy Diskettes 685 22.7.1 format and fdformat: Formatting Diskettes 685 22.7.2 dd: Copying Diskettes 686 22.7.3 Handling DOS Diskettes 686 22.8 cpio: Copy Input-Output 688 22.8.1 Backing Up Files (-o) 689 22.8.2 Restoring Files (-i) 690 22.8.3 Displaying the Archive (-it) 691 22.8.4 Other Options 691 22.9 tar: The Tape Archive Program 691 22.9.1 Backing Up Files (-c) 692 22.9.2 Restoring Files (-x) 694 22.9.3 Displaying the Archive (-t) 695 22.9.4 Using tar with Compression Utilities 695 22.9.5 Other Options 696 22.10 Managing the Disk Space 697 22.10.1 Assessing Space Consumed by Users (du -s) 698 22.10.2 find Revisited: The Administrator's Tool 698 22.10.3 xargs: Building a Dynamic Command Line 699 22.11 Password Administration with passwd 700 22.12 The rc Scripts Used by init 700 22.12.1 The Start and Kill Scripts 701 22.13 Terminal Management 702 22.13.1 getty and /etc/gettydefs 702 22.13.2 Setting the Terminal Type 703 22.13.3 Using Virtual Terminals 703 22.14 Printing Preliminaries 704 22.15 Administering an SVR4 Printer 705 22.15.1 Adding a Printer 706 22.15.2 lpstat: Obtaining Printer and Job Status 707 22.15.3 accept and reject: Controlling Spooling 708 22.15.4 enable and disable 708 22.15.5 lpmove: Moving Jobs to a Different Printer 708 Summary 712 Going Further 713 Self-Test 714 Exercises 714 Going Further 715 Key Terms 716 23 TCP/IP Network Administration 717 23.1 TCP/IP and the Addressing System 717 23.2 Setting Up the Network Interface Card 720 23.3 ifconfig: Configuring the Network Interface 721 23.4 ping: Checking the Network 722 23.5 Routing 723 23.5.1 route: Building a Static Routing Table 724 23.6 netstat: Displaying the Network Parameters 725 23.7 inetd: The Internet Daemon 726 23.8 pppd: The Point-to-Point Protocol (PPP) 727 23.9 Using PPP to Connect to the Internet 728 23.9.1 Specifying the Name Server and Resolver 729 23.9.2 Obtaining Script Parameters 729 23.9.3 Using dip 730 23.9.4 Using chat 732 23.9.5 After Establishing the Link 732 23.10 PAP and CHAP Authentication 733 23.11 The Network File System 734 23.11.1 Setting Up NFS 735 24 Going Further-Building the Internet Server 739 Index 877\2 | ||
890 | _aIndia | ||
891 | _aFGSA | ||
999 |
_c37889 _d37889 |