question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I would love to have a chmod calculator feature added to cheat.sh.

Something I have in mind:

curl cheat.sh/chmod/644

or

curl cheat.sh/chmod/-rw-r--r--

chmod u=rw,go=r / 644 / rw-r--r--

Linux Permissions:

Owner           Group           Public

Read    [X]     Read    [X]     Read    [X]
Write   [X]     Write   []      Write   []
Execute []      Execute []      Execute []


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ErezBinyamincommented, May 29, 2020

I like this idea a lot! I’ve written a script! You can pass a permission string rwx-wx--x or a value 731 and the output will be the same

Linux Permissions String:	rwx-wx--x
Linux Permissions Number:	731

Owner		Group		Public

Read    [X]	Read    [ ]	Read    [ ]
Write   [X]	Write   [X]	Write   [ ]
Execute [X]	Execute [X]	Execute [X]

1reaction
chubincommented, Jun 3, 2020

It works now! Many thanks to @ErezBinyamin who implemented the adapter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chmod Calculator
Chmod Calculator is a free utility to calculate the numeric (octal) or symbolic value for a set of file or folder permissions in...
Read more >
Chmod Calculator | Chmod Generator | Chmod Command
Chmod calculator allows you to quickly generate permissions in numerical and symbolic formats. All extra options are included (recursive, sticky, etc).
Read more >
Unix Permissions / chmod Calculator - WintelGuy.com
Unix Permissions / chmod Calculator ... There are three specific UNIX/Linux file system permissions - read (r), write (w), and execute (x). Permissions...
Read more >
CHMOD Calculator - Online Conversion
Calculate Chmod values for Unix and Linux systems.
Read more >
Chmod Calculator - NetTools.club
Chmod Calculator is an online utility to convert Linux permissions for files or directories on servers between different formats (symbolic, numeric).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found