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.
- MacOS Operating System
- Python 3.x
Important: For the program to function correctly, it needs access to the Mac's hard drive.
To ensure the MacOS System Data Inspector works correctly:
- Open System Settings.
- Click on Privacy & Security.
- Scroll down and select Full Disk Access on the left side.
- 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.
- You may need to restart the Python application or the terminal for the changes to take effect.
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.
- 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.
To make the System Data Inspector easily executable from any directory using the command sdi
, follow these steps:
Make your script executable by running:
chmod +x /path/to/systemdatainspector.py
Copy the script to /usr/local/bin
and rename it as sdi
:
sudo cp /path/to/systemdatainspector.py /usr/local/bin/sdi
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.
© Alex Arroyo, 2023