본문 바로가기

리디 접속이 원활하지 않습니다.
강제 새로 고침(Ctrl + F5)이나 브라우저 캐시 삭제를 진행해주세요.
계속해서 문제가 발생한다면 리디 접속 테스트를 통해 원인을 파악하고 대응 방법을 안내드리겠습니다.
테스트 페이지로 이동하기

Mastering Linux Shell Scripting - Second Edition 상세페이지

컴퓨터/IT 개발/프로그래밍 ,   컴퓨터/IT IT 해외원서

Mastering Linux Shell Scripting - Second Edition

A practical guide to Linux command-line, Bash scripting, and Shell programming
소장전자책 정가17,000
판매가17,000
Mastering Linux Shell Scripting - Second Edition 표지 이미지

Mastering Linux Shell Scripting - Second Edition작품 소개

<Mastering Linux Shell Scripting - Second Edition> ▶Book Description
In this book, you'll discover everything you need to know to master shell scripting and make informed choices about the elements you employ.

Grab your favorite editor and start writing your best Bash scripts step by step. Get to grips with the fundamentals of creating and running a script in normal mode, and in debug mode. Learn about various conditional statements' code snippets, and realize the power of repetition and loops in your shell script. You will also learn to write complex shell scripts. This book will also deep dive into file system administration, directories, and system administration like networking, process management, user authentications, and package installation and regular expressions. Towards the end of the book, you will learn how to use Python as a BASH Scripting alternative.

By the end of this book, you will know shell scripts at the snap of your fingers and will be able to automate and communicate with your system with keyboard expressions.

▶What You Will Learn
⦁ Make, execute, and debug your first Bash script
⦁ Create interactive scripts that prompt for user input
⦁ Foster menu structures for operators with little command-line experience
⦁ Develop scripts that dynamically edit web configuration files to produce a new virtual host
⦁ Write scripts that use AWK to search and reports on log files
⦁ Draft effective scripts using functions as building blocks, reducing maintenance and build time
⦁ Make informed choices by comparing different script languages such as Python with BASH

▶Key Features
⦁ Identify high-level steps such as verifying user input
⦁ Using the command line and conditional statements in creating/executing simple shell scripts
⦁ Create and edit dynamic shell scripts to manage complex and repetitive tasks
⦁ Leverage the command-line to bypass GUI and automate common tasks

▶Who This Book Is For
If you are a Linux administrator or a system administrator and are interested in automating tasks in your daily lives, saving time and effort, this book is for you. Basic shell scripting and command-line experience will be required. Familiarity with the tasks you need to automate will be helpful.

▶What this book covers
⦁ Chapter 1, The What and Why of Scripting with Bash, will introduce Linux shells, how to write your first shell script, how to prepare your editor, how to debug your shell script, and some basic bash programming, such as declaring variables, variable scope, and command substitution.
⦁ Chapter 2, Creating Interactive Scripts, covers how to read input from the user using read command, how to pass options to your script, how to control the visibility of the entered text, and how to limit the number of entered characters.
⦁ Chapter 3, Conditions Attached, will introduce the if statement, the case statement, and other testing command such as else and elif.
⦁ Chapter 4, Creating Code Snippets, covers creating and using code snippets using editors, such as vim and Visual Studio Code.
⦁ Chapter 5, Alternative Syntax, will discuss advanced testing using [[ and how to perform arithmetic operations.
⦁ Chapter 6, Iterating with Loops, will teach you how to use for loops, while loops, and until loops to iterate over simple values and complex values.
⦁ Chapter 7, Creating Building Blocks with Functions, will introduce functions and explains how to create a function, list builtin functions, pass parameters to functions, and writing recursive functions.
⦁ Chapter 8, Introducing the Stream Editor, will introduce the basics of sed tool to manipulate files, such as adding, replacing deleting, and transforming text.
⦁ Chapter 9, Automating Apache Virtual Hosts, contains a practical example of sed and explains how to create virtual hosts automatically using sed.
⦁ Chapter 10, AWK Fundamentals, will discuss AWK and how to filter file content using it. Also, we will discuss some AWK programming basics.
⦁ Chapter 11, Regular Expressions, covers regular expressions, their engines, and how to use them with sed and AWK to empower your script.
⦁ Chapter 12, Summarizing Logs with AWK, will show how to process the httpd.conf Apache log file using AWK and extract useful well-formatted data.
⦁ Chapter 13, A Better lastlog with AWK, will show you how to use AWK to output beautiful reports using the lastlog command by filtering and processing the lastlog output.
⦁ Chapter 14, Using Python as a Bash Scripting Alternative, will discuss Python programming language basics and explains how to write some Python scripts as a bash script alternative.



출판사 서평

▶Editorial Review
First, you'll learn about Linux shells and why we chose the bash shell. Then, you'll learn how to write a simple bash script and how to edit your bash script using Linux editors.

Following this, you will learn how to define a variable and the visibility of a variable. After this, you will learn how to store command execution output into a variable, which is called command substitution. Also, you will learn how to debug your code using bash options and Visual Studio Code. You will learn how to make your bash script interactive to the user by accepting input from the user using the read command. Then, you will learn how to read options and its values if the user passed them to the script. Following this, you will learn how to write conditional statements such as if statements and how to use case statements. After this, you will learn how to create code snippets using vim and Visual Studio Code. For repetitive tasks, you will see how to write for loops, how to iterate over simple values, and how to iterate over directory content. Also, you will learn how to write nested loops. Along with this, you will write while and until loops. Then, we will move on to functions, the reusable chunks of code. You will learn how to write functions and how to use them. After this, you will be introduced to one of the best tools in Linux, which is Stream Editor. As we are still talking about text processing, we will introduce AWK, one of the best text processing tools in Linux that you will ever see.

After this, you will learn how to empower your text processing skills by writing better regular expressions. Finally, you will be introduced to Python as an alternative to bash scripting.


저자 소개

⦁ Mokhtar Ebrahim
Mokhtar Ebrahim started by working as a PHP developer since 2005 as a freelancer then he worked for some Egyptian companies as a full-time developer. After that, he shifted his work to GNU/Linux and server administration since 2010 during his work in Royal Commission in Saudi Arabia. He is responsible for maintaining, securing, and troubleshooting Linux servers for multiple clients around the world. He loves writing shell and Python scripts to automate his work. He writes technical articles on his website about Linux, Python, web development, and server administration. He is a father to a beautiful girl and a husband to a faithful wife.

⦁ Andrew Mallett
Andrew Mallett is the owner of The Urban Penguin and is a comprehensive provider for professional Linux software development, training, and services. Having always been a command-line fan, he feels that so much time can be saved through knowing command-line shortcuts and scripting. TheUrbanPenguin YouTube channel, maintained by Andrew, has well over 800 videos to support this and he has authored four other Packt titles.

목차

▶TABLE of CONTENTS
1: THE WHAT AND WHY OF SCRIPTING WITH BASH
2: CREATING INTERACTIVE SCRIPTS
3: CONDITIONS ATTACHED
4: CREATING CODE SNIPPETS
5: ALTERNATIVE SYNTAX
6: ITERATING WITH LOOPS
7: CREATING BUILDING BLOCKS WITH FUNCTIONS
8: INTRODUCING THE STREAM EDITOR
9: AUTOMATING APACHE VIRTUAL HOSTS
10: AWK FUNDAMENTALS
11: REGULAR EXPRESSIONS
12: SUMMARIZING LOGS WITH AWK
13: A BETTER LASTLOG WITH AWK
14: USING PYTHON AS A BASH SCRIPTING ALTERNATIVE


리뷰

구매자 별점

0.0

점수비율
  • 5
  • 4
  • 3
  • 2
  • 1

0명이 평가함

리뷰 작성 영역

이 책을 평가해주세요!

내가 남긴 별점 0.0

별로예요

그저 그래요

보통이에요

좋아요

최고예요

별점 취소

구매자 표시 기준은 무엇인가요?

'구매자' 표시는 리디에서 유료도서 결제 후 다운로드 하시거나 리디셀렉트 도서를 다운로드하신 경우에만 표시됩니다.

무료 도서 (프로모션 등으로 무료로 전환된 도서 포함)
'구매자'로 표시되지 않습니다.
시리즈 도서 내 무료 도서
'구매자’로 표시되지 않습니다. 하지만 같은 시리즈의 유료 도서를 결제한 뒤 리뷰를 수정하거나 재등록하면 '구매자'로 표시됩니다.
영구 삭제
도서를 영구 삭제해도 ‘구매자’ 표시는 남아있습니다.
결제 취소
‘구매자’ 표시가 자동으로 사라집니다.

이 책과 함께 구매한 책


이 책과 함께 둘러본 책



본문 끝 최상단으로 돌아가기

spinner
모바일 버전