GithubHelp home page GithubHelp logo

alexaldearroyo / systemdatainspector Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 857 KB

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.

Python 100.00%
files filesystem storage macos python python3

systemdatainspector's Introduction

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

systemdatainspector's People

Contributors

alexaldearroyo avatar areks123 avatar

Stargazers

David Dennison avatar Thomas Soteros avatar Clayton Kehoe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.