Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Hands-On Linux Administration on Azure

You're reading from   Hands-On Linux Administration on Azure Develop, maintain, and automate applications on the Azure cloud platform

Arrow left icon
Product type Paperback
Published in Feb 2020
Publisher Packt
ISBN-13 9781839215520
Length 508 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Rithin Skaria Rithin Skaria
Author Profile Icon Rithin Skaria
Rithin Skaria
Frederik Vos Frederik Vos
Author Profile Icon Frederik Vos
Frederik Vos
Kamesh Ganesan Kamesh Ganesan
Author Profile Icon Kamesh Ganesan
Kamesh Ganesan
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Chapter 1: Exploring the Microsoft Azure Cloud 2. Chapter 2: Getting Started with the Azure Cloud FREE CHAPTER 3. Chapter 3: Basic Linux Administration 4. Chapter 4: Managing Azure 5. Chapter 5: Advanced Linux Administration 6. Chapter 6: Managing Linux Security and Identities 7. Chapter 7: Deploying Your Virtual Machines 8. Chapter 8: Exploring Continuous Configuration Automation 9. Chapter 9: Container Virtualization in Azure 10. Chapter 10: Working with Azure Kubernetes Service 11. Chapter 11: Troubleshooting and Monitoring Your Workloads 12. Chapter 12: Appendix 13. Index

Working with Text Files

The Unix philosophy started by Ken Thompson aimed to create a capable operating system with a small footprint and a clean user interface. Because part of the Unix philosophy is to write programs to handle text streams, because that is a universal interface, communication between programs, configuration files, and many other things is implemented in plain text. This section is all about handling plain text.

Reading Text

On the most fundamental level, reading the content of a file in plain text format means taking the content of this file and redirecting it to the standard output. The cat command is one utility that can do that—concatenate the content of one or more files (or another input channel) to the standard output:

Reading the contents of the file /etc/shells using the cat utility.
Figure 3.10: Using the cat command to generate standard output

Some nice parameters of this utility are:

  • -A: Show all non-printable characters
  • -b: Number lines, including empty lines
  • ...
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 $19.99/month. Cancel anytime