stat

Display file status. More information: https://keith.github.io/xcode-man-pages/stat.1.html.

stat path/to/file

stat -x path/to/file

stat -f %Mp%Lp path/to/file

stat -f "%Su %Sg" path/to/file

stat -f "%z %N" path/to/file