Skip to content

Display permissions string (drwxr-xr-x) in number format (i.e. 755).

Notifications You must be signed in to change notification settings

leothelocust/PermissionsConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PermissionsConverter

Display permissions string formatted like "drwxr-xr-x" in number format (i.e. 755).

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.

About

Display permissions string (drwxr-xr-x) in number format (i.e. 755).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages