How to See Which Apps Are Using the Network on a Mac Using Terminal

Illustration for How to See Which Apps Are Using the Network on a Mac Using Terminal

If your Mac seems to be using the network unexpectedly, Terminal can show which processes currently have network connections. The most useful built-in command is lsof, which lists open files—including network sockets. Open Terminal from Applications > Utilities, then run: lsof -nP -i Look at the COMMAND and PID columns to identify the app or … Read more

How to Find Which Process Is Using a Port on a Mac Using Terminal

Illustration for How to Find Which Process Is Using a Port on a Mac Using Terminal

When an app cannot start because a port is already in use, Terminal can show which process owns that port. The most useful command is lsof, which lists open files—including network connections—and identifies the process using a specific port. Quick Answer Open Terminal from Applications > Utilities. Run the following command, replacing 8080 with the … Read more

How to Check APFS Containers and Volumes in Terminal on a Mac

Illustration for How to Check APFS Containers and Volumes in Terminal on a Mac

Quick Answer Open Terminal from Applications > Utilities, then run: diskutil apfs list This displays the APFS containers and volumes currently visible to macOS, including identifiers, capacity information, roles, and encryption status when available. For a shorter overview of all connected storage devices, run: diskutil list These commands inspect storage only. They do not erase, … Read more

How to Check Available Space on an External Drive in Terminal on a Mac

Illustration for How to Check Available Space on an External Drive in Terminal on a Mac

Quick Answer Connect the external drive to your Mac, open Terminal, and run: df -h This displays mounted drives in a human-readable format. Look for the external drive’s mount point, usually shown under /Volumes/DriveName. The Avail column shows the space currently available. For a more focused result, replace DriveName with the exact name of your … Read more

How to check mac hardware information in terminal

Illustration for How to check mac hardware information in terminal

You can check many details about your Mac’s hardware directly in Terminal, including the model identifier, serial number, chip, memory, storage devices, displays, batteries, and connected USB or Thunderbolt devices. Terminal is especially useful when you need information in a copyable text format or want to inspect a specific hardware category. Quick Answer Open Terminal … Read more