chmod_calculator

Crates.iochmod_calculator
lib.rschmod_calculator
version0.1.0
created_at2025-05-21 05:44:48.617336+00
updated_at2025-05-21 05:44:48.617336+00
descriptionA tool for calculating chmod octal values and rwx style valus
homepagehttps://github.com/pilkch/chmod-calculator
repositoryhttps://github.com/pilkch/chmod-calculator
max_upload_size
id1682963
size19,939
Chris Pilkington (pilkch)

documentation

https://github.com/pilkch/chmod-calculator

README

chmod-calcuator

Basic chmod calculator. Can convert between octal 0755 style and rwxr-xr-x style and can print a table of the permissions.

Building

Install dependencies:

sudo dnf install rust cargo

Build everything:

cargo build

Tests

cargo test

Usage

$ ./chmod-calculator 765
rwxrw-r-x
$ ./chmod-calculator 0765
rwxrw-r-x
$ ./chmod-calculator rwxrw-r-x
765
$ ./chmod-calculator --table 765
        Owner  Group Other
Read    x      x     x
Write   x      x
Execute x            x

Rationale

I kept going to chmod-calculator.com to convert to/from '0755' style permissions in ansible, but I always have a terminal open in VSCodium, so I thought why don't I just do it there? And I wanted an excuse to mess around with rust.

Commit count: 17

cargo fmt