Display permissions string (drwxr-xr-x) in number format (i.e. 755).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Levi Olson cc8a78f5f2 Fixed comment 10 years ago
README.md Update README.md 10 years ago
permcon.sh Fixed comment 10 years ago

README.md

PermissionsConverter

Converts file/directory permissions from "drwxr-xr-x" format to "755" format.

Installation

Run the following command to download the file:

curl https://raw.githubusercontent.com/leothelocust/PermissionsConverter/master/permcon.sh

Make it globally accessable:

mv permcon.sh /usr/local/bin/permcon

Make it executable:

sudo chmod +x permcon

Usage

Paste the following into command line:

permcon drwxr-xr-x
# or
permcon -rw-r--r--

The output is as follows:

Directory
755
# or
File
644

That's all folks!

If you discover a problem please create an issue ticket and I'll do my best fix it.