WebHosting

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

Error Message in DBeaver connecting using jdbc: Public Key Retrieval is not allowed

Fixing “Public Key Retrieval is not allowed” Error in MySQL with DBeaver   If you are trying to connect MySQL 8+ with DBeaver and suddenly...