HOME > 상세정보

상세정보

Bash cookbook [electronic resource] : leverage bash scripting to automate daily tasks and improve productivity

Bash cookbook [electronic resource] : leverage bash scripting to automate daily tasks and improve productivity

자료유형
E-Book(소장)
개인저자
Brash, Ron. Naik, Ganesh.
서명 / 저자사항
Bash cookbook [electronic resource] : leverage bash scripting to automate daily tasks and improve productivity / Ron Brash, Ganesh Naik.
발행사항
Birmingham, UK :   Packt Publishing,   2018.  
형태사항
1 online resource (viii, 246 p.).
ISBN
9781788839174 (electronic bk.) 178883917X (electronic bk.) 9781788629362
요약
Create simple to advanced shell scripts and enhance your system functionality with effective recipes. In Linux, one of the most commonly used and most powerful tools is the Bash shell. With its collection of engaging recipes, Bash Cookbook takes you through a series of exercises designed to teach you how to effectively use the Bash shell in order to create and execute your own scripts. The book starts by introducing you to the basics of using the Bash shell, also teaching you the fundamentals of generating any input from a command. With the help of a number of exercises, you will get to grips with the automation of daily tasks for sysadmins and power users. Once you have a hands-on understanding of the subject, you will move on to exploring more advanced projects that can solve real-world problems comprehensively on a Linux system. In addition to this, you will discover projects such as creating an application with a menu, beginning scripts on startup, parsing and displaying human-readable information, and executing remote commands with authentication using self-generated Secure Shell (SSH) keys. By the end of this book, you will have gained significant experience of solving real-world problems, from automating routine tasks to managing your systems and creating your own scripts.
일반주기
Title from e-Book title page.  
서지주기
Includes bibliographical references and index.
이용가능한 다른형태자료
Issued also as a book.  
일반주제명
Application software --Development.
바로가기
EBSCOhost   URL
000 00000cam u2200205 a 4500
001 000045982728
005 20190509095647
006 m d
007 cr
008 190507s2018 enk ob 001 0 eng d
020 ▼a 9781788839174 (electronic bk.)
020 ▼a 178883917X (electronic bk.)
020 ▼a 9781788629362
035 ▼a 1862352 ▼b (N$T)
035 ▼a (OCoLC)1050169897
037 ▼a CL0500000988 ▼b Safari Books Online
037 ▼a FCE38AE2-945C-4399-B3FF-F65FD7122EC5 ▼b OverDrive, Inc. ▼n http://www.overdrive.com
040 ▼a UMI ▼b eng ▼e rda ▼e pn ▼c UMI ▼d TEFOD ▼d N$T ▼d 211009
050 0 0 ▼a QA76.76.O63
082 0 4 ▼a 005.438 ▼2 23
084 ▼a 005.438 ▼2 DDCK
090 ▼a 005.438
100 1 ▼a Brash, Ron.
245 1 0 ▼a Bash cookbook ▼h [electronic resource] : ▼b leverage bash scripting to automate daily tasks and improve productivity / ▼c Ron Brash, Ganesh Naik.
260 ▼a Birmingham, UK : ▼b Packt Publishing, ▼c 2018.
300 ▼a 1 online resource (viii, 246 p.).
500 ▼a Title from e-Book title page.
504 ▼a Includes bibliographical references and index.
520 ▼a Create simple to advanced shell scripts and enhance your system functionality with effective recipes. In Linux, one of the most commonly used and most powerful tools is the Bash shell. With its collection of engaging recipes, Bash Cookbook takes you through a series of exercises designed to teach you how to effectively use the Bash shell in order to create and execute your own scripts. The book starts by introducing you to the basics of using the Bash shell, also teaching you the fundamentals of generating any input from a command. With the help of a number of exercises, you will get to grips with the automation of daily tasks for sysadmins and power users. Once you have a hands-on understanding of the subject, you will move on to exploring more advanced projects that can solve real-world problems comprehensively on a Linux system. In addition to this, you will discover projects such as creating an application with a menu, beginning scripts on startup, parsing and displaying human-readable information, and executing remote commands with authentication using self-generated Secure Shell (SSH) keys. By the end of this book, you will have gained significant experience of solving real-world problems, from automating routine tasks to managing your systems and creating your own scripts.
530 ▼a Issued also as a book.
538 ▼a Mode of access: World Wide Web.
630 0 0 ▼a Linux.
650 0 ▼a Application software ▼x Development.
700 1 ▼a Naik, Ganesh.
856 4 0 ▼3 EBSCOhost ▼u https://oca.korea.ac.kr/link.n2s?url=http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=1862352
945 ▼a KLPA
991 ▼a E-Book(소장)

소장정보

No. 소장처 청구기호 등록번호 도서상태 반납예정일 예약 서비스
No. 1 소장처 중앙도서관/e-Book 컬렉션/ 청구기호 CR 005.438 등록번호 E14012239 도서상태 대출불가(열람가능) 반납예정일 예약 서비스 M

컨텐츠정보

목차

Cover -- Title Page -- Copyright and Credits -- Packt Upsell -- Contributors -- Table of Contents -- Preface -- Chapter 1: Crash Course in Bash -- Getting started with Bash and CLI fundamentals -- Your first Bash script with Vim -- Creating and using basic variables -- Hands-on variable assignment -- Hidden Bash variables and reserved words -- Conditional logic using if, else, and elseif -- Evaluating binary numbers -- Evaluating strings -- Nested if statements -- Case/switch statements and loop constructs -- Basic case statement -- Basic loops -- For loop -- Do while loop -- Until loop -- Using functions and parameters -- Using a function with parameters within a for loop -- Including source files -- Including/importing a library script and using external functions -- Retrieving return codes and output -- Return code 101 -- Linking commands, pipes, and input/output -- Redirection and pipe bonzanza -- Getting program input parameters  -- Passing your program flags -- Getting additional information about commands -- Summary -- Chapter 2: Acting Like a Typewriter and File Explorer -- Introduction -- Basic searching for strings and files -- Getting ready -- How to do it... -- How it works... -- Using wildcards and regexes -- Getting ready -- How to do it... -- How it works... -- Math and calculations in script -- Getting ready -- How to do it... -- How it works... -- Striping/altering/sorting/deleting/searching strings with Bash only -- Getting ready -- How to do it... -- How it works... -- Using SED and AWK to remove/replace substrings -- Getting ready -- How to do it... -- How it works... -- Formatting your data/output using echo and printf -- Getting ready -- How to do it... -- How it works... -- Readying your script for different languages with internationalization -- Getting ready -- How to do it... -- How it works... -- Calculating statistics and reducing duplicates based on file contents -- Getting ready -- How to do it... -- How it works... -- Using file attributes with conditional logic -- Getting ready -- How to do it... -- How it works... -- Reading delimited data and altered output format -- Getting ready -- How to do it... -- How it works... -- Chapter 3: Understanding and Gaining File System Mastery -- Introduction -- Viewing files from various angles – head, tail, less, and more -- Getting ready -- How to do it... -- How it works... -- Searching for files by name and/or extension -- Getting ready -- How to do it... -- How it works... -- Creating a diff of two files and patching -- Getting ready -- How to do it... -- How it works... -- Creating symbolic links and using them effectively -- How to do it... -- How it works... -- Crawling filesystem directories and printing a tree -- Getting ready -- How to do it... -- How it works... -- Finding and deleting duplicate files or directories -- Getting ready -- How to do it... -- How it works... -- Joining and splitting files at arbitrary positions -- Getting ready -- How to do it... -- How i.
t works... -- Generating datasets and random files of various size -- Getting ready -- How to do it... -- How it works... -- Chapter 4: Making a Script Behave Like a Daemon -- Introduction -- Running a program continuously (forever) using looping constructs or recursion -- Getting ready -- How to do it... -- How it works... -- Keeping programs/scripts running after logoff -- Getting ready -- How to do it... -- How it works... -- Invoking commands when they require permissions -- Getting ready -- How to do it... -- How it works... -- Sanitizing user input and for repeatable results -- Getting ready -- How to do it... -- How it works... -- Making a simple multi-level user menu using select -- Getting ready -- How to do it... -- How it works... -- Generating and trapping signals for cleanup -- Getting ready -- How to do it... -- How it works... -- Using temporary files and lock files in your program -- Getting ready -- How to do it... -- How it works... -- Leveraging timeout when waiting for command completion -- Getting ready -- How to do it... -- How it works... -- Creating a file-in-file-out program and running processes in parallel -- Getting ready -- How to do it... -- How it works... -- Executing your script on startup -- Getting ready -- How to do it... -- How it works... -- Chapter 5: Scripts for System Administration Tasks -- Introduction -- Gathering and aggregating system information -- Getting ready -- How to do it... -- How it works... -- Gathering network information and connectivity diagnostics -- Getting ready -- How to do it... -- How it works... -- Configuring basic network connectivity -- Getting ready -- How to do it... -- How it works... -- Monitoring directories and files -- Getting ready -- How to do it... -- How it works... -- Compressing and archiving files -- Getting ready -- How to do it... -- How it works... -- Rotating files from RAM to storage for log rotation -- Getting ready -- How to do it... -- Adding configuration to /etc/logrotate.d/ -- How it works... -- Using Linux iptables for a firewall -- Getting ready -- How to do it... -- How it works... -- Accessing SQL databases remotely or locally -- Getting ready -- How to do it... -- How it works... -- Creating SSH keys for password less remote access -- Getting ready -- How to do it... -- Creating and configuring cron Jobs for task scheduling -- How to do it... -- How it works... -- Creating users and groups systematically -- How to do it... -- How it works... -- Chapter 6: Scripts for Power Users -- Introduction -- Creating Syslog entries and generating an alarm   -- Getting ready -- How to do it... -- How it works... -- Backing up and erasing media, disks, and partitions with DD -- Getting ready -- How to do it... -- How it works... -- Creating graphics and presentations on the CLI -- Getting ready -- How to do it... -- How it works... -- Checking for file integrity and tampering -- Getting ready -- How to do it... -- How it works... -- Mounting network file systems.
and retrieving files -- Getting ready -- How to do it... -- How it works... -- Browsing the web from the CLI -- Getting ready -- How to do it... -- How it works... -- Capturing network traffic headlessly -- Getting ready -- How to do it... -- How it works... -- Finding binary dependencies -- Getting ready -- How to do it... -- How it works... -- Fetching time from different locations -- Getting ready -- How to do it... -- How it works... -- Encrypting/decrypting files from a script -- Getting ready -- How to do it... -- How it works... -- Chapter 7: Writing Bash to Win and Profit -- Introduction -- Creating a lame utility HTTP server -- Getting ready -- How to do it… -- How it works… -- Parsing RSS feeds and output HTML -- Getting ready -- How to do it… -- How it works… -- Scraping the web and collecting files -- Getting ready -- How to do it… -- How it works… -- Making a simple IRC chat bot logger -- Getting ready -- How to do it… -- How it works… -- Blocking IP addresses from failed SSH attempts -- Getting ready -- How to do it… -- How it works… -- Playing and managing audio from Bash -- Getting ready -- How to do it… -- How it works… -- Creating a simple NAT and DMZ firewall -- Getting ready -- How to do it… -- How it works… -- Parsing a GitHub project and generate a report -- Getting ready -- How to do it… -- How it works… -- Creating a poor man''s incremental remote backup -- Getting ready -- How to do it… -- How it works… -- Using Bash scripts to monitor udev input -- Getting ready -- How to do it… -- How it works… -- Using Bash to monitor battery life and optimize it -- Getting ready -- How to do it… -- How it works… -- Using chroot and restricted Bash shells to secure scripts -- Getting ready -- How to do it… -- How it works… -- Chapter 8: Advanced Scripting Techniques -- Introduction -- Calculating and reducing the runtime of a script -- Getting ready -- How to do it... -- How it works... -- Writing one-line conditional statements and loops -- Getting ready -- How to do it... -- How it works... -- Avoiding command not found warnings/errors and improving portability -- Getting ready -- How to do it... -- How it works... -- Creating a config file and using it in tandem with your scripts -- Getting ready -- How to do it... -- How it works... -- Improving your shell – GCC and command line colors -- Getting ready -- How to do it... -- How it works... -- Adding aliases, and altering user paths/variables -- Getting ready -- How to do it... -- How it works... -- Echoing output to raw terminal devices -- Getting ready -- How to do it... -- How it works... -- Creating simple frontend GUIs for Bash scripts -- Getting ready -- How to do it... -- How it works... -- Compiling and installing your own Bash shell -- Getting ready -- How to do it... -- How it works... -- Recording terminal sessions for automation -- Getting ready -- How to do it... -- How it works... -- Writing high-quality scripts by example -- Getting ready -- How to do it... -- How it .

관련분야 신착자료

Harvard Business Review (2025)