Learning Linux Shell Scripting

Linux shell scripting is a useful tool for programmers and system administrators. It can speed up and automate many tasks, including finding and editing files, editing text, performing advanced searches, downloading data from the web, backing up and archiving data, and transferring files through a network. For Linux administrators, the Linux shell is also a great tool for monitoring system health and deploying updates and software. Learn the basics of Linux shell scripting in this course with Packt trainers Sarath Lakshman and Shantanu Tushar.

Note: This course was created by Packt Publishing. We are pleased to host this training in our library.

Topics include:

  • Printing in the terminal
  • Performing math in the Linux shell
  • Getting and setting dates
  • Working with functions and arguments
  • Reading output
  • Making comparisons
  • Concatenating text
  • Finding, editing, generating, and deleting files
  • Running parallel processes
  • Using regular expressions
  • Downloading webpages
  • Parsing data from a website
  • Finding broken links
  • Backing up and archiving
  • Transferring files and data through the network
  • Monitoring your Linux system
  • Gathering data for system administration

Course Timeline:

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

...

Concatenating With Cat

...

Recording and Playing Back Terminal Sessions

...

Finding files and file listing

...

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

...

Using loopback files

...

Generating Of Files Any-size

...

Intersection Set Difference B 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

...

Finding the difference between files, and 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

...

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 email 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

...

Web photo album generator

...

Creating a define utility by using the web backend

...

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

...

Finding broken links in a website

...

Tracking changes to a website

...

Posting to a web page and reading response

...

Compressing data with gzip

...

Archiving With Tar

...

Archiving with cpio

...

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

...

Let us Ping

...

Listing all the machines alive on a network

...

Running commands on a remote host with SSH

...

Password-less auto-login with SSH

...

Port forwarding and mounting remote drives

...

Network traffic and port analysis

...

Creating arbitrary sockets

...

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

...

Log file 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

...

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

...

Course Reviews:

Average Rating 0
0 Ratings
Details
5 Stars 0
4 Stars 0
3 Stars 0
2 Stars 0
1 Stars 0

No reviews yet.