Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Ultimate Linux Shell Scripting Guide

You're reading from   The Ultimate Linux Shell Scripting Guide Automate, Optimize, and Empower tasks with Linux Shell Scripting

Arrow left icon
Product type Paperback
Published in Oct 2024
Publisher Packt
ISBN-13 9781835463574
Length 696 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Donald A. Tevault Donald A. Tevault
Author Profile Icon Donald A. Tevault
Donald A. Tevault
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Getting Started with the Shell FREE CHAPTER 2. Interpreting Commands 3. Understanding Variables and Pipelines 4. Understanding Input/Output Redirection 5. Customizing the Environment 6. Text-Stream Filters – Part 1 7. Text Stream Filters – Part 2 8. Basic Shell Script Construction 9. Filtering Text with grep, sed, and Regular Expressions 10. Understanding Functions 11. Performing Mathematical Operations 12. Automating Scripts with here Documents and expect 13. Scripting with ImageMagick 14. Using awk – Part 1 15. Using awk – Part 2 16. Creating User Interfaces with yad, dialog, and xdialog 17. Using Shell Script Options with getops 18. Shell Scripting for Security Professionals 19. Shell Script Portability 20. Shell Script Security 21. Debugging Shell Scripts 22. Introduction to Z Shell Scripting 23. Using PowerShell on Linux 24. Other Books You May Enjoy
25. Index

Questions

  1. What is the most widely-used shell for Linux systems?
    1. zsh
    2. bash
    3. korn
    4. csh
  2. What will happen if you create a Linux shell script on a Windows computer with a Windows text editor, such as Notepad or Wordpad?
    1. The script will run fine on a Linux machine.
    2. Your Windows machine will just shut down in protest of the fact that you’re using it to create Linux scripts.
    3. The script won’t run on a Linux machine, because Windows text editors insert an invisible carriage return character at the end of each line.
    4. Former Microsoft CEO Steve Ballmer will visit you and explain why Linux is a cancer.
  3. 3. In which section would you find the man pages for administrative commands?
    1. 1
    2. 3
    3. 5
    4. 6
    5. 8
  4. Which of the following statements is true?
    1. Interpreted programming languages are good for programs that perform heavy-duty math problems.
    2. Compiled programming languages are generally better than interpreted languages for any large, complex programs.
    3. Examples of interpreted programming languages include C, C++, and Fortran.
    4. There’s no difference in performance between interpreted and compiled programming languages.
  5. True or False: To run administrative commands, it’s best to just log into the root user account.
You have been reading a chapter from
The Ultimate Linux Shell Scripting Guide
Published in: Oct 2024
Publisher: Packt
ISBN-13: 9781835463574
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image