Linux Shell Scripting Cookbook, 2/e(Paperback)
暫譯: Linux Shell 腳本編程食譜,第2版(平裝本)

Shantanu Tushar, Sarath Lakshman

  • 出版商: Packt Publishing
  • 出版日期: 2013-03-28
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 384
  • 裝訂: Paperback
  • ISBN: 1782162747
  • ISBN-13: 9781782162742
  • 相關分類: LinuxCommand Line
  • 已過版

相關主題

商品描述

Don't neglect the shell - this book will empower you to use simple commands to perform complex tasks. Whether you're a casual or advanced Linux user, the cookbook approach makes it all so brilliantly accessible and, above all, useful.

Overview

  • Master the art of crafting one-liner command sequence to perform text processing, digging data from files, backups to sysadmin tools, and a lot more
  • And if powerful text processing isn't enough, see how to make your scripts interact with the web-services like Twitter, Gmail
  • Explores the possibilities with the shell in a simple and elegant way - you will see how to effectively solve problems in your day to day life

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.

What you will learn from this book

  • Explore a variety of regular usage tasks and how it can be made faster using shell command
  • Write shell scripts that can dig data from web and process it with few lines of code
  • Use different kinds of tools together to create solutions
  • Interact with simple web API from scripts
  • Perform and automate tasks such as automating backups and restore with archiving tools
  • Create and maintain file/folder archives, compression formats and encrypting techniques with shell
  • Set up Ethernet and Wireless LAN with the shell script
  • Monitor different activities on the network using logging techniques

Approach

This book is written in a 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 beginners, or just open up any chapter and start following the recipes as a reference for advanced users.

Who this book is written 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.

商品描述(中文翻譯)

不要忽視命令行介面——這本書將使您能夠使用簡單的命令來執行複雜的任務。無論您是休閒還是進階的 Linux 使用者,這種食譜式的方式都讓一切變得如此輕鬆可及,最重要的是,實用性極高。

概述
- 掌握編寫單行命令序列的藝術,以執行文本處理、從文件中提取數據、備份到系統管理工具等多種任務
- 如果強大的文本處理還不夠,看看如何讓您的腳本與 Twitter、Gmail 等網路服務互動
- 以簡單而優雅的方式探索命令行介面的可能性——您將看到如何有效地解決日常生活中的問題

詳細內容
命令行介面仍然是計算機系統上最強大的工具之一——然而,許多使用者並不知道可以用它完成多少事情。通過簡單命令的組合,我們將看到如何在日常計算機使用中解決複雜問題。

《Linux Shell Scripting Cookbook, Second Edition》將帶您通過實用的現實世界食譜,旨在使您在使用命令行介面時的日常生活變得輕鬆。這本書向讀者展示了如何有效地使用命令行介面輕鬆完成複雜任務。

本書討論了使用命令行介面的基本知識、一般命令,並接著展示如何輕鬆地使用這些命令來執行複雜任務。

從命令行介面的基本知識開始,我們將學習簡單命令及其用法,使我們能夠對不同類型的文件執行操作。然後本書將解釋文本處理、網路互動,並以備份、監控和其他系統管理任務作結。

《Linux Shell Scripting Cookbook, Second Edition》是解決日常問題的絕佳指南,使用命令行介面和幾個強大的命令來創建解決方案。

您將從這本書中學到什麼
- 探索各種常用任務,以及如何使用命令行命令加快這些任務的速度
- 編寫可以從網路中提取數據並用幾行代碼處理的腳本
- 結合不同類型的工具來創建解決方案
- 從腳本中與簡單的網路 API 互動
- 執行和自動化任務,例如使用歸檔工具自動備份和恢復
- 使用命令行介面創建和維護文件/文件夾的歸檔、壓縮格式和加密技術
- 使用命令行腳本設置以太網和無線局域網
- 使用日誌技術監控網路上的不同活動

方法
這本書以食譜的形式編寫,通過示例和插圖提供學習。每個食譜都包含執行特定任務所需的一切的逐步說明。本書的設計使得初學者可以從頭到尾閱讀,或是對於進階使用者,只需打開任何章節並開始參考食譜。

這本書的讀者對象
這本書適合希望利用命令行介面做出驚人事情的休閒 GNU/Linux 使用者,以及尋求提高命令行介面工作效率的進階使用者。

您可以通過查看類似的食譜及其描述來開始編寫腳本和單行命令,而無需具備任何命令行腳本或 Linux 的工作知識。中級/進階使用者以及系統管理員/開發者和程式設計師可以在編碼時遇到問題時,將本書作為參考。