Linux Shell Scripting Solutions [Video]

Preview in Mapt

Linux Shell Scripting Solutions [Video]

Sarath Lakshman, Shantanu Tushar

2 customer reviews
Over 110 practical videos on real-world shell problems, guaranteed to make you wonder how you ever lived without them
Mapt Subscription
FREE
$29.99/m after trial
Video
$76.50
RRP $89.99
Save 14%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$76.50
$29.99p/m after trial
RRP $89.99
Subscription
Video
Start 30 Day Trial

Frequently bought together


Linux Shell Scripting Solutions [Video] Book Cover
Linux Shell Scripting Solutions [Video]
$ 89.99
$ 76.50
Compass - powerful SASS library that makes your life easier [Video] Book Cover
Compass - powerful SASS library that makes your life easier [Video]
$ 53.99
$ 45.90
Buy 2 for $35.00
Save $108.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Video Details

ISBN 139781787121645
Course Length8 hours and 24 minutes

Video Description

The shell remains one of the most powerful tools on a computer system yet a large number of users are unaware of how much can be accomplished with it. Using a combination of simple commands, you will see how to solve complex problems in day-to-day computer usage.

This video will take you through useful real-world examples to make your daily life easy when working with the shell. It shows you how to effectively use the shell to accomplish complex tasks with ease. Starting with the basics of the shell, you will learn simple commands and their usages, allowing you to perform operations on different kinds of files. We then explain text processing and web interaction, and conclude with backups, monitoring, and other sysadmin tasks.

This is an an excellent guide on solving day-to-day problems using the shell and a few powerful commands together to create solutions.

Style and Approach

This course will take you through useful real-world solutions designed to make your daily life easy when working with the shell.

Table of Contents

Shell Something Out
Printing in the Terminal
Playing with Variables and Environment Variables
Function to Prepend to Environment Variables
Math with the Shell
Playing with File Description 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
Have a Good Command
Concatenating with cat
Recording and playingback of terminal sessions
Finding files and file listing
Playing with xargs
Translating with tr
Checksum and Verification
Cryptographic Tools and Hashes
Sorting Unique and Duplicates
Temporary File Naming and Random Numbers
Splitting Files and Data
Slicing Filenames Based on Extension
Renaming and Moving Files in Bulk
Spell Checking and Dictionary Manipulation
Automating Interactive Input
Making Commands Quicker by Running Parallel Processes
File In, File Out
Generating Files of any Size
The Intersection and Set Difference (A-B) on Text Files
Finding and Deleting Duplicate Files
Working with File Permissions, Ownership, and the Sticky Bit
Making Files Immutable
Generating Blank Files in Bulk
Finding Symbolic Links and Their Targets
Enumerating File Type Statistics
Using Loopback Files
Finding the Difference between Files, Patching
Using Head and Tail for Printing the Last or First Ten Lines
Listing Only Directories – Alternative Methods
Fast Command-Line Navigation Using pushd and popd
Counting the Number of Lines, Words and Characters in a File
Printing the Directory Tree
Texting and Driving
Using Regular Expressions
Searching and mining text inside a file with grep
Cutting a File Column-Wise with Cut
Using sed to Perform Text Replacement
Using awk for Advanced Text Processing
Finding Frequency of Words Used in a Given File
Compressing or Decompressing JavaScript
Merging Multiple Files as Columns
Printing the nth Word or Column in a File or Line
Printing Text between Line Numbers or Patterns
Printing Lines in the Reverse Order
Parsing E-mail Address and URLs from Text
Removing a Sentence in a File Containing a Word
Replacing a Pattern with Text in all Files in a Directory
Text Slicing and Parameter Operations
Tangled Web? Not at All!!
Downloading from a Web Page
Downloading a Web Page as Plain Text
A Primer on cURL
Parsing Data from a Website
Image crawler and downloader
Web photo album generator
Creating a "define" Utility by Using the Web Backend
Finding Broken Links in a Website
Tracking changes to a website
Posting to a Web Page and Reading Response
The Backup Plan
Archiving with tar
Archiving with cpio
Compressing data with gzip
Archiving and Compressing with Zip
Faster Archiving with pbzip2
Creating filesystems with Compression
Backup Snapshots with rsync
Version Control-Based backup with Git
Creating entire disk images using fsarchiver
The Old-Boy Network
Let Us Ping!
Listing All the Machines Alive on a Network
Running Commands on a Remote Host with SSH
Transferring Files through the Network
Password-Less Auto-Login with SSH
Port Forwarding and Mounting Remote Drives
Network Traffic and Port Analysis
Creating Arbitrary Sockets
Put on the Monitors Cap
Monitoring Disk Usage
Calculating the Execution Time for a Command
Collecting Information about Logged-in Users, Boot Logs, and Boot Failures
Listing the Top ten CPU Consuming Processes in an Hour
Monitoring Command Outputs with Watch
Logging Access to Files and Directories
Logfile Management with logrotate
Logging with syslogd
Monitoring User Logins to Find 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 Filesystems for Errors
Administration Calls
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

What You Will Learn

  • Explore a variety of regular usage tasks and how they can be made faster using shell commands 
  • Write shell scripts that can dig data from the web and process it with a few lines of code
  • Interact with a simple web API from scripts
  • Perform and automate tasks such as automating backups and restoring with archiving tools
  • Create and maintain file/folder archives, compression formats, and encrypting techniques with shell
  • Monitor different activities on the network using logging techniques

Authors

Table of Contents

Shell Something Out
Printing in the Terminal
Playing with Variables and Environment Variables
Function to Prepend to Environment Variables
Math with the Shell
Playing with File Description 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
Have a Good Command
Concatenating with cat
Recording and playingback of terminal sessions
Finding files and file listing
Playing with xargs
Translating with tr
Checksum and Verification
Cryptographic Tools and Hashes
Sorting Unique and Duplicates
Temporary File Naming and Random Numbers
Splitting Files and Data
Slicing Filenames Based on Extension
Renaming and Moving Files in Bulk
Spell Checking and Dictionary Manipulation
Automating Interactive Input
Making Commands Quicker by Running Parallel Processes
File In, File Out
Generating Files of any Size
The Intersection and Set Difference (A-B) on Text Files
Finding and Deleting Duplicate Files
Working with File Permissions, Ownership, and the Sticky Bit
Making Files Immutable
Generating Blank Files in Bulk
Finding Symbolic Links and Their Targets
Enumerating File Type Statistics
Using Loopback Files
Finding the Difference between Files, Patching
Using Head and Tail for Printing the Last or First Ten Lines
Listing Only Directories – Alternative Methods
Fast Command-Line Navigation Using pushd and popd
Counting the Number of Lines, Words and Characters in a File
Printing the Directory Tree
Texting and Driving
Using Regular Expressions
Searching and mining text inside a file with grep
Cutting a File Column-Wise with Cut
Using sed to Perform Text Replacement
Using awk for Advanced Text Processing
Finding Frequency of Words Used in a Given File
Compressing or Decompressing JavaScript
Merging Multiple Files as Columns
Printing the nth Word or Column in a File or Line
Printing Text between Line Numbers or Patterns
Printing Lines in the Reverse Order
Parsing E-mail Address and URLs from Text
Removing a Sentence in a File Containing a Word
Replacing a Pattern with Text in all Files in a Directory
Text Slicing and Parameter Operations
Tangled Web? Not at All!!
Downloading from a Web Page
Downloading a Web Page as Plain Text
A Primer on cURL
Parsing Data from a Website
Image crawler and downloader
Web photo album generator
Creating a "define" Utility by Using the Web Backend
Finding Broken Links in a Website
Tracking changes to a website
Posting to a Web Page and Reading Response
The Backup Plan
Archiving with tar
Archiving with cpio
Compressing data with gzip
Archiving and Compressing with Zip
Faster Archiving with pbzip2
Creating filesystems with Compression
Backup Snapshots with rsync
Version Control-Based backup with Git
Creating entire disk images using fsarchiver
The Old-Boy Network
Let Us Ping!
Listing All the Machines Alive on a Network
Running Commands on a Remote Host with SSH
Transferring Files through the Network
Password-Less Auto-Login with SSH
Port Forwarding and Mounting Remote Drives
Network Traffic and Port Analysis
Creating Arbitrary Sockets
Put on the Monitors Cap
Monitoring Disk Usage
Calculating the Execution Time for a Command
Collecting Information about Logged-in Users, Boot Logs, and Boot Failures
Listing the Top ten CPU Consuming Processes in an Hour
Monitoring Command Outputs with Watch
Logging Access to Files and Directories
Logfile Management with logrotate
Logging with syslogd
Monitoring User Logins to Find 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 Filesystems for Errors
Administration Calls
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

Video Details

ISBN 139781787121645
Course Length8 hours and 24 minutes
Read More
From 2 reviews

Read More Reviews

Recommended for You

Compass - powerful SASS library that makes your life easier [Video] Book Cover
Compass - powerful SASS library that makes your life easier [Video]
$ 53.99
$ 45.90
Building Effective Microservices [Video] Book Cover
Building Effective Microservices [Video]
$ 124.99
$ 106.25
Advanced Tools and Techniques Beyond Base R [Video] Book Cover
Advanced Tools and Techniques Beyond Base R [Video]
$ 124.99
$ 106.25
Learning Microsoft Cognitive Services - Second Edition Book Cover
Learning Microsoft Cognitive Services - Second Edition
$ 35.99
$ 25.20
Pandas Cookbook Book Cover
Pandas Cookbook
$ 39.99
$ 28.00
Machine Learning with R Cookbook - Second Edition Book Cover
Machine Learning with R Cookbook - Second Edition
$ 39.99
$ 28.00