Linked e-resources
Details
Table of Contents
Intro
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgements
Chapter 1: Getting Started
Terminal at a Glance
The Need to Know
Book Conventions
Book Requirements
Minimum Requirements
Installing Xcode
Using Homebrew
Why Use Brew?
Installing Brew
Installing Brew Globally
Installing Brew for Each User
After Installation
Finding Applications in Brew
Installing Applications from Brew
Upgrading Installed Applications
Reinstalling Applications
Summary
Chapter 2: Terminal Basics
The Terminal Application
Customizing Terminal
What Is a Shell?
Zsh
Upgrading from a Previous Version of macOS
Shell Shortcuts
The Filesystem
Meta Directories
User Directories
Catalina's New Layout
Directory Tree
Moving Around the Filesystem
Inspecting Directories
Dragging and Dropping
Different Types of Paths
Absolute Paths
Relative Paths
Directory Operations
Creating Directories
Deleting Directories
Leaving the Filesystem
How Can You Remove a Directory You Are In?
File Operations
Creating Files
Writing Files
Reading Files
Copying Files
Moving Files
Deleting Files
Editing Text in Terminal
Changing the Default Text Editor
Piping
Pipe
Redirecting Output
Redirecting Input
Hidden Files and Folders
Hiding Files the UNIX Way
Hiding Files the macOS Way
Globbing
Single Asterisk
Question Mark
Double Asterisk
Range Matching
Links
Hard Links
Symlinks
Naming Things
Getting Help with Commands
Searching the Manuals
The "See Also" Section
Displaying a Man Section
Permissions
File Permissions
File Permissions Breakdown
Entry Type
Block File
Character File
Link
Socket Link
FIFO
The User, Group, and Other Components
Example Permissions
Features
Access Control List
Extended File Attributes
Changing File Permissions
Absolute Values
Entry Type
User, Group, and Other
Symbolic Values
Escalating Your System Privilege
Aliases
Customizing the Feel
Customizing the Welcome Message
Environment Variables
Why Use Variables?
The Default Text Editor
How Can You Use Variables?
Customizing the Shell Prompt
State Symbols
Date and Time Symbols
Summary
Chapter 3: macOS Built-in Commands
Getting Started
Compression
Zip Compression
Unzip
Testing the Integrity of the Zip File
Listing the Contents of the Zip File
Zip
Adjust the Size of the Archive
Encrypting the Archive
Compressing Directories
Gzip Compression
Tar
Working with Files
Finding Content in Files
Finding a Filename
Finding a Filename with locate
Where Is Your Command?
Inspecting File Contents
Working with Text
Printing Text
Formatting Output
Printf Format
Displaying the Arguments
Viewing the Contents
Transforming Text
Changing Characters
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgements
Chapter 1: Getting Started
Terminal at a Glance
The Need to Know
Book Conventions
Book Requirements
Minimum Requirements
Installing Xcode
Using Homebrew
Why Use Brew?
Installing Brew
Installing Brew Globally
Installing Brew for Each User
After Installation
Finding Applications in Brew
Installing Applications from Brew
Upgrading Installed Applications
Reinstalling Applications
Summary
Chapter 2: Terminal Basics
The Terminal Application
Customizing Terminal
What Is a Shell?
Zsh
Upgrading from a Previous Version of macOS
Shell Shortcuts
The Filesystem
Meta Directories
User Directories
Catalina's New Layout
Directory Tree
Moving Around the Filesystem
Inspecting Directories
Dragging and Dropping
Different Types of Paths
Absolute Paths
Relative Paths
Directory Operations
Creating Directories
Deleting Directories
Leaving the Filesystem
How Can You Remove a Directory You Are In?
File Operations
Creating Files
Writing Files
Reading Files
Copying Files
Moving Files
Deleting Files
Editing Text in Terminal
Changing the Default Text Editor
Piping
Pipe
Redirecting Output
Redirecting Input
Hidden Files and Folders
Hiding Files the UNIX Way
Hiding Files the macOS Way
Globbing
Single Asterisk
Question Mark
Double Asterisk
Range Matching
Links
Hard Links
Symlinks
Naming Things
Getting Help with Commands
Searching the Manuals
The "See Also" Section
Displaying a Man Section
Permissions
File Permissions
File Permissions Breakdown
Entry Type
Block File
Character File
Link
Socket Link
FIFO
The User, Group, and Other Components
Example Permissions
Features
Access Control List
Extended File Attributes
Changing File Permissions
Absolute Values
Entry Type
User, Group, and Other
Symbolic Values
Escalating Your System Privilege
Aliases
Customizing the Feel
Customizing the Welcome Message
Environment Variables
Why Use Variables?
The Default Text Editor
How Can You Use Variables?
Customizing the Shell Prompt
State Symbols
Date and Time Symbols
Summary
Chapter 3: macOS Built-in Commands
Getting Started
Compression
Zip Compression
Unzip
Testing the Integrity of the Zip File
Listing the Contents of the Zip File
Zip
Adjust the Size of the Archive
Encrypting the Archive
Compressing Directories
Gzip Compression
Tar
Working with Files
Finding Content in Files
Finding a Filename
Finding a Filename with locate
Where Is Your Command?
Inspecting File Contents
Working with Text
Printing Text
Formatting Output
Printf Format
Displaying the Arguments
Viewing the Contents
Transforming Text
Changing Characters