Description |
1 online resource (440 pages) |
Contents |
Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Chapter 1: Introduction; What is Linux?; What is Bash?; Summary; Chapter 2: Setting Up Your Local Environment; Technical requirements; Choosing between a virtual machine and a physical installation; Setting up VirtualBox; Creating an Ubuntu virtual machine; Creating the virtual machine in VirtualBox; Installing Ubuntu on the virtual machine; Accessing the virtual machine via SSH; Summary; Questions; Further reading; Chapter 3: Choosing the Right Tools; Technical requirements |
|
Using graphical editors for shell scriptingAtom; Atom installation and configuration; Notepad++; Using command-line editors; Vim; Vim summary; .vimrc; Vim cheat sheet; nano; Combining graphical editors with command-line editors when writing shell scripts; Summary; Questions; Further reading; Chapter 4: The Linux Filesystem; Technical requirements; The Linux filesystem explained; What is a filesystem?; What makes the Linux filesystem unique?; Structure of the Linux filesystem; Tree structure; Overview of top-level directories; What about multiple partitions?; /bin/, /sbin/, and /usr/; /etc |
|
/Opt/, /tmp/, and /var/Everything is a file; Different types of files; Summary; Questions; Further reading; Chapter 5: Understanding the Linux Permissions Scheme; Technical requirements; Read, write, and execute; RWX; Users, groups, and others; Manipulating file permissions and ownership; chmod, umask; sudo, chown, and chgrp; sudo; chown, chgrp; Working with multiple users; Advanced permissions; File attributes; Special file permissions; Access Control Lists (ACLs); Summary; Questions; Further reading; Chapter 6: File Manipulation; Technical requirements; Common file operations; Copying |
|
RemovingRenaming, moving, and linking; Archiving; Finding files; locate; find; Summary; Questions; Further reading; Chapter 7: Hello World!; Technical requirements; First steps; The shebang; Running scripts; Readability; Comments; Script header; Verbosity; Verbosity in comments; Verbosity of commands; Verbosity of command output; Keep It Simple, Stupid (KISS); Summary; Questions; Further reading; Chapter 8: Variables and User Input; Technical requirements; What is a variable?; Why do we need variables?; Variables or constants?; Variable naming; Dealing with user input; Basic input |
|
Parameters and argumentsInteractive versus non-interactive scripts; Combining positional arguments and read; Summary; Questions; Further reading; Chapter 9: Error Checking and Handling; Technical requirements; Error checking; Exit status; Functional checks; Test shorthand; Variable refresher; Bash debugging; Error handling; if-then-exit; if-then-else; Shorthand syntax; Error prevention; Checking arguments; Managing absolute and relative paths; Dealing with y/n; Summary; Questions; Further reading; Chapter 10: Regular Expressions; Technical requirements; Introducing regular expressions |
Note |
What is a regular expression? |
Summary |
Shell scripting is one of the most common and powerful ways to automate tasks in a Linux / Unix environment. With the help of real-world exercises, you will learn to leave the GUI behind, automate tasks, and unlock the true power of Bash. |
Bibliography |
Includes bibliographical references. |
Local Note |
eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - North America |
Subject |
Linux.
|
|
UNIX (Computer file)
|
|
Linux |
|
UNIX (Computer file) |
|
Command languages (Computer science)
|
|
Virtual computer systems.
|
|
Information technology -- Management.
|
|
Linux. |
|
Computer networking & communications. |
|
Computers -- Operating Systems -- Linux. |
|
Computers -- System Administration -- General. |
|
Computers -- System Administration -- Linux & UNIX Administration. |
Other Form: |
Print version: Tammer, Sebastiaan. Learn Linux Shell Scripting - Fundamentals of Bash 4. 4 : A Comprehensive Guide to Automating Administrative Tasks with the Bash Shell. Birmingham : Packt Publishing Ltd, ©2018 9781788995597 |
ISBN |
1788990242 |
|
9781788990240 (electronic bk.) |
|
1788995597 |
|
9781788995597 |
|