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

Featured Posts

hop – Install Linux Alongside Windows Without a USB Drive Open-source · MIT License Windows 10 / 11

OPEN SOURCE MIT LICENSE WINDOWS 10 / 11 hop – Install Linux Alongside Windows Without a USB Drive What if y...