exa icon indicating copy to clipboard operation
exa copied to clipboard

Feature request: show file permissions numerically

Open flip111 opened this issue 9 years ago • 8 comments

Adding the chmod number to the detailed info list would be nice. Same as stat --format '%a' <file> can output

flip111 avatar Nov 24 '17 16:11 flip111

Good idea! I'm thinking --octal-permissions for an argument to switch it on.

ogham avatar Dec 17 '17 19:12 ogham

Any update?

ghost avatar May 14 '18 07:05 ghost

Still no updates on this?

TonioGela avatar Nov 05 '18 09:11 TonioGela

@ogham where in the code should this be added ?

flip111 avatar Nov 09 '18 23:11 flip111

Any update?

dereisele avatar Dec 30 '18 14:12 dereisele

yeet!?

mckenziewagner avatar May 21 '19 17:05 mckenziewagner

I would love this feature! I have a little shell function for this that I picked up somewhere, but it would be great to have integrated with exa.

ls -l "$@" | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(" %0o ",k);print}';

comfortablynick avatar Jul 25 '19 15:07 comfortablynick

So we will receive it in a new release?

TonioGela avatar Oct 09 '20 08:10 TonioGela