Oblasti, naše knjige

Web design

Java, JavaScript, JScript, Perl

C++ Visual C++ C#

Apple - MAC OS X

Visual Basic .NET, VBA, V. Studio

Android

PHP I MYSQL

Python programiranje

WordPress

AutoCad, ArchiCAD, SolidWorks, Catia, Pro/Engineer

Mašinsko učenje

Access

Animacija

Audio, Multimedia, Video

Baze podataka

Cloud

CSS

Delphi

Digitalna fotografija

Django

E-komerc

ECDL

GOOGLE

Grafika, Dizajn, Štampa

Hardver

Internet

Joomla

jQuery

Mreže

MS Office

Obrada teksta

OFFICE 2013

Programiranje

Raspberry PI

Rečnici

Robotika

Sertifikati

SQL Server

Statistika

Tabele

Telekomunikacije

Unix, Linux

Windows

Windows 7

Windows 8

Zaštita i sigurnost

 

Oblasti, drugi izdavači

Alternativna učenja

Antropologija

Arheologija

Arhitektura

Astrologija

Astronomija

Audio kursevi + knjige

Autobiografija

Automobili

Bajke

Biografija

Biološke nauke

Botanika

Dečije knjige

Dizajn

Domaće pripovetke

Domaći roman

Drama

E-knjiga

Ekologija

Ekonomija

Elektrotehnika

Enciklopedija

Esejistika

Etika

Fantastika

Film

Filologija

Filozofija

Fizika

Fotografija

Geografija

Geologija

Građevinarstvo

Hemija

Hidrotehnika

Hobi

Horor

Humor

Intervju

Istorija

Istorija i teorija književnosti

Istorija umetnosti

Istorijski roman

Knjiga posle posla - Beletristika i ostala izdanja

Knjižare i naše knjige

Književna kritika

Kuvari, hrana i piće

Leksikografija

Lingvistika

Ljubavni roman

logo

Magija

Marketing

Mašinstvo

Matematika

Medicina

Memoari

Menadžment

Modeliranje podataka

Monografija

Muzika

Nagrađivanje knjige

Naučna fantastika

OpenOffice.org

Operativni sistemi

Oracle

Organizacione nauke

Pedagogija

Pisci u medijima

Ples

Poezija

Politika

Poljoprivreda

Popularna medicina

Popularna nauka

Popularna psihologija

Posao

Pozorište

Pravo

Pravoslavlje

Primenjene nauke

Pripovetke

Prirodne nauke

Priručnik

Psihologija

Publicistika

Putopis

Religija

Roman

Satira

Saveti

Slikarstvo

Socijalna mreža - Facebook

Sociologija

Sport

Sport i hobi

Strip

Tableti

Tehnologija

Triler

Turizam

Twitter

Udžbenici

Umetnost

Urbanizam

UX DIZAJN

 

Unix, Linux

 

Mastering Linux Shell Scripting - Second Edition

 

Mastering Linux Shell Scripting - Second Edition

Autor: Mokhtar Ebrahim, Andrew Mallett
Broj strana: 284
ISBN broj: 9781788990554
Izdavač: PACKT PUBLISHING
Godina izdanja: 2018.

Pregleda (30 dana / ukupno): 60 / 167

Predlog za prevod

  • Twitter
  • Facebook
  • Google plus
  • Linkedin
  • Pinterest
  • Email

 

 

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

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.

Authors

Mokhtar Ebrahim

Mokhtar Ebrahim started working as a Linux system administrator in 2010. 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 the Like Geeks 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 he is a comprehensive provider of 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

Chapter 1: The What and Why of Scripting with Bash
  • Technical requirements
  • Types of Linux shells
  • What is bash scripting?
  • The bash command hierarchy
  • Preparing text editors for scripting
  • Creating and executing scripts
  • Declaring variables
  • Variable scope
  • Command substitution
  • Debugging your scripts
  • Summary
  • Questions
  • Further reading
Chapter 2: Creating Interactive Scripts
  • Technical requirements
  • Using echo with options
  • Basic script using read
  • Script comments
  • Enhancing scripts with read prompts
  • Limiting the number of entered characters
  • Controlling the visibility of the entered text
  • Passing options
  • Try to be standard
  • Enhancing learning with simple scripts
  • Summary
  • Questions
  • Further reading
Chapter 3: Conditions Attached
  • Technical requirements
  • Simple decision paths using command-line lists
  • Verifying user input with lists
  • Using the test shell built-in
  • Creating conditional statements using if
  • Extending if with else
  • Test command with the if command
  • More conditions with elif
  • Using case statements
  • Recipe – building a frontend with grep
  • Summary
  • Questions
  • Further reading
Chapter 4: Creating Code Snippets
  • Technical requirements
  • Abbreviations
  • Using code snippets
  • Creating snippets using VS Code
  • Summary
  • Questions
  • Further reading
Chapter 5: Alternative Syntax
  • Technical requirement
  • Recapping the test command
  • Providing parameter defaults
  • When in doubt – quote!
  • Advanced tests using [[
  • Arithmetic operations using ((
  • Summary
  • Questions
  • Further reading
Chapter 6: Iterating with Loops
  • Technical requirement
  • for loops
  • Advanced for loops
  • The IFS
  • Counting directories and files
  • C-style for loops 
  • Nested loops
  • Redirecting loop output
  • while loops and until loops
  • Reading input from files
  • Creating operator menus
  • Summary
  • Questions
  • Further reading
Chapter 7: Creating Building Blocks with Functions
  • Technical requirements
  • Introducing functions
  • Passing parameters to functions
  • Variable scope
  • Returning values from functions
  • Recursive functions
  • Using functions in menus
  • Summary
  • Questions
  • Further reading
Chapter 8: Introducing the Stream Editor
  • Technical requirements
  • Using grep to display text
  • Understanding the basics of sed
  • Other sed commands
  • Multiple sed commands
  • Summary
  • Questions
  • Further reading
Chapter 9: Automating Apache Virtual Hosts
  • Technical requirements
  • Apache name-based Virtual Hosts
  • Automating virtual host creation
  • Summary
  • Questions
  • Further reading
Chapter 10: AWK Fundamentals
  • Technical requirements
  • The history behind AWK
  • Displaying and filtering content from files
  • AWK variables
  • Conditional statements
  • Formatting output
  • Further filtering to display users by UID
  • AWK control files
  • Summary
  • Questions
  • Further reading
Chapter 11: Regular Expressions
  • Technical requirements
  • Regular expression engines
  • Defining BRE patterns
  • Defining ERE patterns
  • Using grep
  • Summary
  • Questions
  • Further reading
Chapter 12: Summarizing Logs with AWK
  • Technical requirements
  • The HTTPD log file format
  • Displaying data from web logs
  • Displaying the highest ranking IP address
  • Displaying the browser data
  • Working with email logs
  • Summary
  • Questions
  • Further reading
Chapter 13: A Better lastlog with AWK
  • Technical requirements
  • Using AWK ranges to exclude data
  • Conditions based on the number of fields
  • Manipulating the AWK record separator to report on XML data
  • Summary
  • Questions
  • Further reading
Chapter 14: Using Python as a Bash Scripting Alternative
  • Technical requirements
  • What is Python?
  • Saying Hello World the Python way
  • Pythonic arguments
  • Supplying arguments
  • Counting arguments
  • Significant whitespace
  • Reading user input
  • Using Python to write to files
  • String manipulation
  • Summary
  • Questions
  • Further reading

 

Budite prvi koji će ostaviti komentar.

Ostavite komentar Ostavite komentar

 

Preporučujemo

 

Naučite Linux Shell skriptovanje, drugo izdanje

1. Naučite Linux Shell skriptovanje, drugo izdanje

Iskoristite moćne shell skripove za rešavanje svakodnevnih problema.

Predlog za prevod

Više o knjizi Više o knjizi

 

Kali Linux Network Scanning Cookbook

2. Kali Linux Network Scanning Cookbook

"Kali Linux Network Scanning Cookbook" is intended for information security professionals and casual security enthusiasts alike. It will provide the foundational principles for the novice reader but will also introduce scripting techniques and in-depth analysis for the more advanced audience. Whether you are brand new to Kali Linux or a seasoned veteran, this book will aid in both understanding and ultimately mastering many of the most powerful and useful scanning techniques in the industry. It is assumed that the reader has some basic security testing experience.

Predlog za prevod

Više o knjizi Više o knjizi

 

Penetration Testing with Raspberry Pi - Second Edition

3. Penetration Testing with Raspberry Pi - Second Edition

Learn the art of building a low-cost, portable hacking arsenal using Raspberry Pi 3 and Kali Linux 2

Predlog za prevod

Više o knjizi Više o knjizi