Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Linux Shell Scripting – Fundamentals of Bash 4.4

You're reading from   Learn Linux Shell Scripting ‚àö¬¢‚Äö√ᬮ‚Äö√Ñ√∫ Fundamentals of Bash 4.4 A comprehensive guide to automating administrative tasks with the Bash shell

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781788995597
Length 452 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sebastiaan Tammer Sebastiaan Tammer
Author Profile Icon Sebastiaan Tammer
Sebastiaan Tammer
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Setting Up Your Local Environment 3. Choosing the Right Tools 4. The Linux Filesystem 5. Understanding the Linux Permissions Scheme 6. File Manipulation 7. Hello World! 8. Variables and User Input 9. Error Checking and Handling 10. Regular Expressions 11. Conditional Testing and Scripting Loops 12. Using Pipes and Redirection in Scripts 13. Functions 14. Scheduling and Logging 15. Parsing Bash Script Arguments with getopts 16. Bash Parameter Substitution and Expansion 17. Tips and Tricks with Cheat Sheet 18. Assessments 19. Other Books You May Enjoy

Chapter 5

  1. Which three permissions are used for Linux files?
    • Read
    • Write
    • Execute
  2. Which three types of ownership are defined for Linux files?
    • User
    • Group
    • Others
  3. Which command is used to change the permissions on a file?
    chmod
  4. What mechanism controls the default permissions for newly created files?
    umask
  5. How is the following symbolic permission described in octal: rwxrw-r--
    0764. 7 from rwx on the first three places (user), 6 from rw- on the second three places (group), and 4 from r-- on the last three places (others).
  6. How is the following octal permission described symbolically: 0644
    rw-r--r--. First 6 is ReadWrite, then two 4s which are just Reads.
  7. Which command allows us to gain superuser privileges?
    sudo
  8. Which commands can we use to change ownerships for a file?
    • chown
    • chgrp
  9. How can we arrange for multiple users to share access to files?
    We make sure they share group membership...
lock icon The rest of the chapter is locked
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 £16.99/month. Cancel anytime