2 examples for stat
# Display the file type and permissions of a file/folder in octal format stat -f %p filename
# Display the file type and permissions of a file/folder in numeric format stat -c %a filename
# Display the file type and permissions of a file/folder in octal format stat -f %p filename
# Display the file type and permissions of a file/folder in numeric format stat -c %a filename