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.

39 lines
704 B

10 years ago
10 years ago
  1. PermissionsConverter
  2. ====================
  3. Display permissions string formatted like "drwxr-xr-x" in number format (i.e. 755).
  4. ## Installation
  5. Run the following command to download the file:
  6. curl https://raw.githubusercontent.com/leothelocust/PermissionsConverter/master/permcon.sh
  7. Make it globally accessable:
  8. mv permcon.sh /usr/local/bin/permcon
  9. Make it executable:
  10. sudo chmod +x permcon
  11. ## Usage
  12. Paste the following into command line:
  13. permcon drwxr-xr-x
  14. # or
  15. permcon -rw-r--r--
  16. The output is as follows:
  17. Directory
  18. 755
  19. # or
  20. File
  21. 644
  22. **That's all folks!**
  23. If you discover a problem please create an issue ticket and I'll do my best fix it.