Skip to content

A command-line tool for inspecting and displaying the sizes of specific system data directories on macOS, with options to delve deeper into directory contents and open them in Finder.

Notifications You must be signed in to change notification settings

alexaldearroyo/systemdatainspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

System Data Inspector

Static Badge

The System Data Inspector for MacOS provides a quick and efficient way to view the approximate calculations of potentially modifiable space occupied by System Data on your Mac. With it, you can view various directories and their sizes.

Screenshot

Requirements

  • MacOS Operating System
  • Python 3.x

Permissions

Important: For the program to function correctly, it needs access to the Mac's hard drive.

Granting Disk Access

To ensure the MacOS System Data Inspector works correctly:

  1. Open System Settings.
  2. Click on Privacy & Security.
  3. Scroll down and select Full Disk Access on the left side.
  4. Unlock the settings of the program where you are going to execute the script (usually "Terminal") by clicking the lock icon at the bottom left and entering your password.
  5. You may need to restart the Python application or the terminal for the changes to take effect.

Usage

To run the System Data Inspector in the terminal:

python3 <path_to_script>/systemdatainspector.py

Follow the on-screen prompts to inspect the sizes of various directories and optionally delve deeper into specific directories.

Features

  • View total size for predefined system directories.
  • Color-coded size display for better readability.
  • Option to inspect individual directories in detail.
  • Capability to open inspected directories in Finder.

Install and Execute as a Command

To make the System Data Inspector easily executable from any directory using the command sdi, follow these steps:

Make the Script Executable

Make your script executable by running:

chmod +x /path/to/systemdatainspector.py

Copy the Script to a Directory in Your PATH

Copy the script to /usr/local/bin and rename it as sdi:

sudo cp /path/to/systemdatainspector.py /usr/local/bin/sdi

Execution

After these steps, you can run the System Data Inspector from any directory simply by typing:

sdi

This will execute the systemdatainspector.py script.

Remember to replace /path/to/systemdatainspector.py with the actual path to your script.

Credits

© Alex Arroyo, 2023

About

A command-line tool for inspecting and displaying the sizes of specific system data directories on macOS, with options to delve deeper into directory contents and open them in Finder.

Topics

Resources

Stars

Watchers

Forks

Languages