Quantcast
Channel: IT-Linux
Viewing all articles
Browse latest Browse all 171

FreeBSD find the chmod numerical value for a file or directory

$
0
0

I need to find out the numerical value of a file on a FreeBSD system. For example, get 644 instead of -rw-r--r-- for the /etc/resolv.conf file. Is there is a way to get this value in my bash shell script?


Viewing all articles
Browse latest Browse all 171

Trending Articles