Search This Blog

Monday, December 30, 2013

Get file permission in numeric form in linux

We can use the following command to get the file permission in numeric form instead of string from.

stat -c "%a %n" *

Where 

-c   --> specify custom format
%a --> Access rights in octal format
%n --> file name

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Unlock Hidden Windows Startup and Shutdown Details : How to Enable Verbose Startup and Shutdown Messages in Windows 11

WINDOWS TROUBLESHOOTING · FULL GUIDE Unlock Hidden Windows Startup and Shutdown Details Enable Verbose Status...