Tankar om teknik
Problem solving, mostly Linux
söndag 22 september 2019
Get octal permissions for files.
Sometimes it would be nice to read the permissions in octal, not only set it in octal.
This can be done using the stat tool.
This command will list all files/folders and their octal permission.
stat -c "%a %n" *
-c is for specifying the display format.
%a is the octal permission and %n is the file name.
Source:
AskUbuntu.com
Inga kommentarer:
Skicka en kommentar
Senaste inlägg
Äldre inlägg
Startsida
Prenumerera på:
Kommentarer till inlägget (Atom)
Inga kommentarer:
Skicka en kommentar