ebook img

UNIX Hints and Hacks PDF

465 Pages·1999·5.506 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview UNIX Hints and Hacks

;-_=_Scrolldown to the Underground_=_-; UNIX Hints & Hacks http://kickme.to/tiger/ Table Of Contents UNIX Hints & Hacks Index Table of Contents UNIX Hints & Hacks Table of Contents Copyright Introduction l U NIX Knowledge Needed l T ested UNIX Flavors l Sh ells and Scripting Languages l B efore Beginning l H ints & Hacks Topics l E xamples: Commands, Functions, Routines, and Procedures l Sy mbols, Command Syntax, and Notations l St ructure l A bout the Author l D edication l A cknowledgments Chapter 1: Topics in Administration l 1. 1 Collecting System Information l 1. 2 Backup Key Files! l 1. 3 Execution on the Last Day of a Month l 1. 4 Dealing with Unwanted Daemons l 1. 5 Keep Those Daemons Running l 1. 6 fuser Instead of ps l 1. 7 Swap on-the-Fly l 1. 8 Keep It Up with nohup l 1. 9 Redirecting Output to Null l 1. 10 Keeping Remote Users Out l 1. 11 Rewinding Tapes Fast l 1. 12 Generating a Range of Numbers l 1. 13 Remove the ---- Dashes ---- l 1. 14 echo Does ls l 1. 15 Building Large Dummy Filesence file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/index.htm (1 von 5) [12.05.2000 15:12:08] Table Of Contents l 1. 16 Burning-in Disk Drives l 1. 17 Bringing a System Down Chapter 2: Networking l 2. 1 OSI Networking Model l 2. 2 Finding the Failure l 2. 3 Hiding Files with NFS l 2. 4 Remote Network Configurations l 2. 5 Shutdown, Halt, or Reboot over the Network l 2. 6 Talking NFS3 to NFS2 l 2. 7 Unmounting and Busy Devices l 2. 8 Static Routing or routed l 2. 9 Get the Ethernet Address with arp Chapter 3: Security l 3. 1 Delegating root to Multiple Admins l 3. 2 The Full Path to Superuser l 3. 3 Monitoring root in the Password File l 3. 4 Vulnerabilities in UNIX l 3. 5 Permissions Levels l 3. 6 Protect root at All Costs l 3. 7 File Collecting l 3. 8 File Encryption l 3. 9 Clear and Lock l 3. 10 Power Tool Chapter 4: System Monitoring l 4. 1 Monitoring at Boot Time l 4. 2 Starting with a Fresh Install l 4. 3 Monitor with tail l 4. 4 Cut the Log in Half l 4. 5 Mail a Process l 4. 6 Watching the Disk Space l 4. 7 Find the Disk Hog l 4. 8 Watching by grepping the Difference l 4. 9 Monitoring with ping l 4. 10 Monitoring Core Files l 4. 11 Monitoring Crash Files l 4. 12 Remember Daylight Savings Time file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/index.htm (2 von 5) [12.05.2000 15:12:08] Table Of Contents l 4. 13 Checking the Time Chapter 5: Account Management l 5. 1 User Account Names l 5. 2 Passwords l 5. 3 UID l 5. 4 Group IDs and /etc/group l 5. 5 GECOS Field l 5. 6 Home Directories l 5. 7 Shells and the Password File l 5. 8 Configuring an Account l 5. 9 User Account Startup Files l 5. 10 Using Aliases l 5. 11 MS-DOS Users l 5. 12 Changing Shells l 5. 13 Finding My Displays l 5. 14 Copy Files to Multiple Home Directories l 5. 15 Kill an Account l 5. 16 Nulling the Root Password Without vi Chapter 6: File Management l 6. 1 Copy Files with Permissions and Time Stamps l 6. 2 Copy Files Remotely l 6. 3 Which tmp Is a Good Temp? l 6. 4 Dealing with Symbolic Links l 6. 5 Finding Files with grep l 6. 6 Multiple grep l 6. 7 Executing Commands Recursively with find l 6. 8 Moving and Renaming Groups of Files l 6. 9 Stripping the Man Pages l 6. 10 Clean Up DOS Files l 6. 11 Splitting Files l 6. 12 Limit the Size of the Core l 6. 13 uuencode and uudecode Chapter 7: Displays and Emulations l 7. 1 Terminal Types l 7. 2 Setting Terminal Types file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/index.htm (3 von 5) [12.05.2000 15:12:08] Table Of Contents l 7. 3 Make Use of stty l 7. 4 Hotkeys l 7. 5 Testing ASCII Terminals l 7. 6 Troubleshooting ASCII Terminals l 7. 7 Sharing STDIN/STDOUT on Two Terminals l 7. 8 Refreshing X l 7. 9 Killing Resources with xkill l 7. 10 Setting xterm Titlebars l 7. 11 Control the Mouse with the Keyboard l 7. 12 Display from a Remote X Server l 7. 13 ASCII Table in UNIX Chapter 8: Editors l 8. 1 The Anatomy of ed & vi l 8. 2 The Six Steps to ed l 8. 3 Six Simple Steps to vi l 8. 4 Configuring vi Parameters l 8. 5 Abbreviating vi Commands l 8. 6 Creating Macros l 8. 7 Search and Replace l 8. 8 Other Places to Use vi l 8. 9 Editing Multiple Files l 8. 10 Edit, Run, and Edit Again l 8. 11 Reading STDOUT into vi l 8. 12 Using vi when tmp Is Full Chapter 9: Users l 9. 1 Six Types of Users l 9. 2 New Users l 9. 3 Public Relations l 9. 4 Leave Big Impressions with Little Things l 9. 5 Handling an Irate User l 9. 6 Helping Users with Online Tools l 9. 7 Users Borrowing Equipment l 9. 8 Outage Notifications l 9. 9 Users Who Take Care of You l 9. 10 When Users Leave Chapter 10: System Administration: The Occupation file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/index.htm (4 von 5) [12.05.2000 15:12:08] Table Of Contents l 10 .1 Three Levels of Administration l 10 .2 Functions of an Administrator l 10 .3 Finding a Job Working with UNIX l 10 .4 Preparing an Administrator's Résumé l 10 .5 Preparing for an Interview l 10 .6 Types of Interviews l 10 .7 Being Interviewed l 10 .8 Finding the Right Person for the Job l 10 .9 Interviewing Candidates l 10 .10 Working with Vendors: Sales and Maintenance Representatives l 10 .11 Working with Vendor Support l 10 .12 Working with Local Support Engineers Appendix A: Basic Scripting Concepts l B uilding a Script l R ecursive Scripts Appendix B: System Installation Checklist l Sy stem Installation Check List Appendix C: System Incident Log l Sy stem Incident Log l Sy stem Incident Log Appendix D: Administration Tools and Recommended Organizations l Sy stem Administration Tools l N etworking Tools l R ecommended Organizations Appendix E: Glossary Index Linux: A Network Solution for Your Office Index Table of Contents © Copyright Macmillan USA. All rights reserved. file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/index.htm (5 von 5) [12.05.2000 15:12:08] Index UNIX Hints & Hacks Contents Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Symbols Index A a command (append in insert mode), 1st a command (append text), 1st, 2nd abbreviated user account names, 1st, 2nd, 3rd abbreviating commands, 1st, 2nd, 3rd, 4th macros command execution, 1st, 2nd HTML files, 1st, 2nd, 3rd, 4th, 5th, 6th long words and phrases, 1st, 2nd, 3rd, 4th mixing words, 1st, 2nd, 3rd, 4th, 5th scripts, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th system administration, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th typographical errors, 1st, 2nd, 3rd access FTP restricting, 1st, 2nd, 3rd local unmounting devices, 1st networks troubleshooting, 1st, 2nd remote clear command, 1st network configuration, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th passwords, 1st, 2nd, 3rd ping, 1st, 2nd, 3rd, 4th reboot command, 1st restricting, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 20th, 21st, 22nd single-user state, 1st file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/bkindex.htm (1 von 13) [12.05.2000 15:12:18] Index unmounting, 1st unmounting devices, 1st root monitoring, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th UID passwords, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th superuser root account, 1st access permission, 1st accounts see user accounts, 1st achievements administrators resumes, 1st activating swap files on startup, 1st adding files to terminfo, 1st, 2nd, 3rd, 4th, 5th swap files, 1st, 2nd, 3rd, 4th user accounts from command prompts, 1st, 2nd, 3rd, 4th addresses Ethernet (MAC) outputting, 1st, 2nd, 3rd, 4th, 5th IP editing, 1st administration local, 1st macros abbreviating, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th multitasking, 1st administrators, 1st code of ethics, 1st corporate policy, 1st, 2nd customer support, 1st documentation, 1st employment, 1st companies, 1st file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/bkindex.htm (2 von 13) [12.05.2000 15:12:19] Index conferences, 1st conferences/seminars, 1st email, 1st networking, 1st, 2nd newspapers, 1st recruiters, 1st, 2nd technical job fairs, 1st, 2nd Usenet newsgroups, 1st, 2nd, 3rd vendors, 1st, 2nd web sites, 1st, 2nd gurus, 1st, 2nd, 3rd intermediate/advanced, 1st, 2nd, 3rd, 4th interpersonal skills, 1st, 2nd, 3rd interviews candidates, 1st case scenario questions, 1st, 2nd employer questions, 1st, 2nd favorite hard questions, 1st, 2nd, 3rd file questions, 1st, 2nd, 3rd in person, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th interpersonal skills, 1st, 2nd, 3rd, 4th, 5th nontechnical, 1st preparation, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th procedural questions, 1st, 2nd, 3rd resume verification questions, 1st, 2nd, 3rd standard questions, 1st, 2nd system commands, 1st, 2nd, 3rd technical, 1st telephone, 1st, 2nd, 3rd, 4th jobs newspaper advertisements, 1st junior-level, 1st, 2nd, 3rd multiple root access, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th networking, 1st networks, 1st porting, 1st file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/bkindex.htm (3 von 13) [12.05.2000 15:12:19] Index programming, 1st resumes achievements, 1st contact information, 1st, 2nd contracting/consulting, 1st, 2nd, 3rd, 4th devices, 1st education, 1st, 2nd format, 1st, 2nd, 3rd keywords, 1st, 2nd, 3rd multiple, 1st objectives, 1st, 2nd operating systems, 1st organization affiliations, 1st paper type, 1st, 2nd sample, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th size, 1st software, 1st, 2nd submitting, 1st systems, listing, 1st updating, 1st vendors, 1st work experience, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th salary, 1st, 2nd, 3rd scripting languages, 1st security, 1st senior, 1st, 2nd, 3rd, 4th support engineers (SE), 1st, 2nd, 3rd, 4th, 5th, 6th systems configuration, 1st installation, 1st terminals, 1st users interpersonal skills, 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th relationship with, 1st, 2nd, 3rd, 4th vendor support, 1st work experience, 1st working hours, 1st file:///D|/Cool Stuff/old/ftp/unix-hints-and-hacks.tar/unix-hints-and-hacks/unix-hints-and-hacks/bkindex.htm (4 von 13) [12.05.2000 15:12:19]

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.