Сообщение

Shantanu Tushar, Sarath Lakshman - Linux Shell Scripting Cookbook, 2nd Edition [2013, PDF/EPUB, ENG] + Code

Сообщение Солнышко » 31 янв 2018, 21:22

Linux Shell Scripting Cookbook, 2nd Edition
Год: 2013
Автор: Shantanu Tushar, Sarath Lakshman
Издательство: Packt Publishing
ISBN: 978-1-78216-275-9
Язык: Английский
Формат: PDF/EPUB
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 384
Описание:
In Detail
The shell remains one of the most powerful tools on a computer system - yet a large number of users are unaware of how much one can accomplish with it. Using a combination of simple commands, we will see how to solve complex problems in day to day computer usage.
Linux Shell Scripting Cookbook, Second Edition will take you through useful real-world recipes designed to make your daily life easy when working with the shell. The book shows the reader how to effectively use the shell to accomplish complex tasks with ease.
The book discusses basics of using the shell, general commands and proceeds to show the reader how to use them to perform complex tasks with ease.
Starting with the basics of the shell, we will learn simple commands with their usages allowing us to perform operations on files of different kind. The book then proceeds to explain text processing, web interaction and concludes with backups, monitoring and other sysadmin tasks.
Linux Shell Scripting Cookbook, Second Edition serves as an excellent guide to solving day to day problems using the shell and few powerful commands together to create solutions.
Approach
This book is written in cookbook style and it offers learning through recipes with examples and illustrations. Each recipe contains step-by-step instructions about everything necessary to execute a particular task. The book is designed so that you can read it from start to end for beginner's or just open up any chapter and start following the recipes as a reference for advanced users.
Who this book is for
This book is both for the casual GNU/Linux users who want to do amazing things with the shell, and for advanced users looking for ways to make their lives with the shell more productive.
You can start writing scripts and one-liners by simply looking at the similar recipe and its descriptions without any working knowledge of shell scripting or Linux. Intermediate/advanced users as well as system administrators/ developers and programmers can use this book as a reference when they face problems while coding.
Preface
Chapter 1: Shell Something Out

Introduction
Printing in the terminal
Playing with variables and environment variables
Function to prepend to environment variables
Math with the shell
Playing with fie descriptors and redirection
Arrays and associative arrays
Visiting aliases
Grabbing information about the terminal
Getting and setting dates and delays
Debugging the script
Functions and arguments
Reading the output of a sequence of commands
Reading n characters without pressing the return key
Running a command until it succeeds
Field separators and iterators
Comparisons and tests
Chapter 2: Have a Good Command
Introduction
Concatenating with cat
Recording and playing back of terminal sessions
Finding fies and fie listing
Playing with xargs
Translating with tr
Checksum and verifiation
Cryptographic tools and hashes
Sorting unique and duplicates
Temporary fie naming and random numbers
Splitting fies and data
Slicing fienames based on extension
Renaming and moving fies in bulk
Spell checking and dictionary manipulation
Automating interactive input
Making commands quicker by running parallel processes
Chapter 3: File In, File Out
Introduction
Generating fies of any size
The intersection and set difference (A-B) on text fies
Finding and deleting duplicate fies
Working with fie permissions, ownership, and the sticky bit
Making fies immutable
Generating blank fies in bulk
Finding symbolic links and their targets
Enumerating fie type statistics
Using loopback fies
Creating ISO fies and hybrid ISO
Finding the difference between fies, patching
Using head and tail for printing the last or fist 10 lines
Listing only directories – alternative methods
Fast command-line navigation using pushd and popd
Counting the number of lines, words, and characters in a fie
Printing the directory tree
Chapter 4: Texting and Driving
Introduction
Using regular expressions
Searching and mining a text inside a fie with grep
Cutting a fie column-wise with cut
Using sed to perform text replacement
Using awk for advanced text processing
Finding the frequency of words used in a given fie
Compressing or decompressing JavaScript
Merging multiple fies as columns
Printing the nth word or column in a fie or line
Printing text between line numbers or patterns
Printing lines in the reverse order
Parsing e-mail addresses and URLs from a text
Removing a sentence in a fie containing a word
Replacing a pattern with text in all the fies in a directory
Text slicing and parameter operations
Chapter 5: Tangled Web? Not At All!
Introduction
Downloading from a web page
Downloading a web page as plain text
A primer on cURL
Accessing Gmail e-mails from the command line
Parsing data from a website
Image crawler and downloader
Web photo album generator
Twitter command-line client
Creating a "defie" utility by using the Web backend
Finding broken links in a website
Tracking changes to a website
Posting to a web page and reading the response
Chapter 6: The Backup Plan
Introduction
Archiving with tar
Archiving with cpio
Compressing data with gzip
Archiving and compressing with zip
Faster archiving with pbzip2
Creating fiesystems with compression
Backup snapshots with rsync
Version control based backup with Git
Creating entire disk images with fsarchiver
Chapter 7: The Old-boy Network
Introduction
Setting up the network
Let us ping!
Listing all the machines alive on a network
Running commands on a remote host with SSH
Transferring fies through the network
Connecting to a wireless network
Password-less auto-login with SSH
Port forwarding using SSH
Mounting a remote drive at a local mount point
Network traffi and port analysis
Creating arbitrary sockets
Sharing an Internet connection
Basic fiewall using iptables
Chapter 8: Put on the Monitor's Cap
Introduction
Monitoring disk usage
Calculating the execution time for a command
Collecting information about logged in users, boot logs, and boot failures
Listing the top 10 CPU consuming processes in an hour
Monitoring command outputs with watch
Logging access to fies and directories
Logfie management with logrotate
Logging with syslog
Monitoring user logins to fid intruders
Remote disk usage health monitor
Finding out active user hours on a system
Measuring and optimizing power usage
Monitoring disk activity
Checking disks and fiesystems for errors
Chapter 9: Administration Calls
Introduction
Gathering information about processes
Killing processes and send or respond to signals
Sending messages to user terminals
Gathering system information
Using /proc for gathering information
Scheduling with cron
Writing and reading the MySQL database from Bash
User administration script
Bulk image resizing and format conversion
Taking screenshots from the terminal
Managing multiple terminals from one
Index

Постеры

Соцсети

 

Статистика

Автор: Солнышко
Добавлен: 31 янв 2018, 21:22
Размер: 6.12 МБ
Размер: 6 412 776 байт
Сидеров: 0
Личеров: 0
Скачали: 0
Здоровье: 0%
Скорость скачивания: 0 байт/сек
Скорость раздачи: 0 байт/сек
Последний сидер: Нет
Последний личер: Нет
Приватный: Нет (DHT включён)
Операционные системы Скачать торрент
Скачать торрент
[ Размер 11.42 КБ / Просмотров 0 ]

Поделиться



  • Похожие торренты
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в Операционные системы