How to see the current mode of a file in Linux

The command to see the current mode of a file in Linux is:

~ stat --format '%a' settings.php
555

The opposite of that would be:

~ chmod 555 settings.php

Reference

https://unix.stackexchange.com/questions/46915/get-the-chmod-numerical-value-for-a-file

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top