Skip to main content
main-content

Über dieses Buch

Look beyond the basics of Mac programming and development to become a Mac power user. When most people think about the Mac, they think about the amazing graphical user interface macOS is known for. However, there is a whole world to explore beneath the hood. This book approaches working directly in the terminal with fun projects and ideas to help turn you into an advanced Mac user.

You'll work with Brew (HomeBrew), which gives you the ability to install applications from Linux (and Unix) that can make the terminal more useful. This is important, because a lot of applications have been stripped out of macOS or deprecated. For example, Apple's built-in PHP is usually a major release behind. You'll also customize your terminal to change everything about it, making it your own. The whole world is about personalizing. Why put up with the Apple defaults?

Once you have your terminal set up and ready to rock, you'll review the basics of programming on the Mac terminal. This will allow you to get a taste of power scripting. You'll discover the power of bash, PHP, and Python. And then you'll apply those tools to web development.

Tweak Your Mac Terminal takes you on a journey into a world of the terminal and its hidden applications.

What You'll Learn

Customize the terminal to make it perfect for your needsDevelop web applications using basic coding skills in the terminalInstall HomeBrew and by extension Linux and Unix applications

Who This Book Is ForMac users who are already very familiar with the GUI and want to go further. This book will especially help starting IT professionals and beginning programmers.

Inhaltsverzeichnis

Frontmatter

Chapter 1. Getting Started

Abstract
All personal computers these days come with a graphical user interface (GUI), although this hasn’t always been the case. Most computers prior to the release of the Apple Macintosh booted into a terminal, text-only environment. All you would have been greeted with was a flashing cursor.
Daniel Platt

Chapter 2. Terminal Basics

Abstract
In this chapter, we look more closely at what Terminal is and what you can do with it. There is a lot to cover, so let’s dig in.
Daniel Platt

Chapter 3. macOS Built-in Commands

Abstract
In this chapter, we explore the different commands that came with your copy of the macOS operating system. There are loads of different commands to choose from. A lot of these commands are used to manipulate files or process text.
Daniel Platt

Chapter 4. Installing Commands Using Brew

Abstract
In the last chapter, we looked at many of the commands that come preinstalled with macOS Catalina. In this chapter, we will look at some additional commands that can be installed using Brew. These commands will give you extra functionality over and above what you get with macOS.
Daniel Platt

Chapter 5. Shell Scripting Basics

Abstract
Some of my earlier memories of using computers involve typing a computer program into the computer. I remember hoping that I didn’t make a mistake and then finally running it. In this chapter, I hope to foster a sense of accomplishment that helps you on your journey.
Daniel Platt

Chapter 6. PHP

Abstract
PHP is a popular web scripting language. According to w3techs.com, in December 2019, 78.9% of server-side websites with a known language used PHP. It happens that PHP was installed on your computer as part of Catalina.
Daniel Platt

Chapter 7. Version Control

Abstract
Have you ever worked on a large document on your computer? When I was at university, I frequently had to write long documents. This was back when computers still had a 3 ½-inch floppy drive, which should give you some idea how long ago we’re talking. I was forever worried that the computer would corrupt my document.
Daniel Platt

Chapter 8. Web Development

Abstract
I use my Mac for web development all day long, and Terminal is one of many applications I use all the time.
Daniel Platt

Chapter 9. Going Further

Abstract
This final chapter covers what to do if you have problems with Brew. I will show you how to interact with a weather and stock service using only Terminal, as well as how to use Oh My Zsh to customize your Terminal. This chapter shows you how I use my Terminal.
Daniel Platt

Backmatter

Weitere Informationen

Premium Partner

    Bildnachweise