Ubuntu – How to get chmod (octal) permissions of file system objects (files and directories) on Linux

Linux

chmod is the command and system call used to change the access permissions and the special mode flags of file system objects (files and directories).

chmod permissions of the file

stat -c %a ./environment
644  // output

chmod permissions of the folder

stat -c %a ./etc
755 // output

https://www.mldgroup.com

Vyštudovaný top manažér pôsobiaci najmä ako manažér, marketér, softvérový inžinier, konzultant, bloger, YouTuber a zatiaľ neúspešný hudobník a producent. V rámci praxe pôsobil v rôznych odvetviach na rôznych pozíciách v malých aj veľkých firmách, vrátane spoluprác a partnerstiev s významnými firmami či poradenskými spoločnosťami.

Pridaj komentár

Vaša e-mailová adresa nebude zverejnená. Vyžadované polia sú označené *