Due to shell aliases and built-in
statfunctions, using an unadorned
statinteractively or in a script may get you different functionality than that described here. Invoke it via
env stat ...) to avoid interference from the shell.
What does "shell aliases and built-in
statfunctions" mean? In bash, I didn't find an alias or builtin in or function named
$ whereis stat stat: /usr/bin/stat /usr/bin/X11/stat /usr/share/man/man1/stat.1.gz /usr/share/man/man2/stat.2.gz $ help stat bash: help: no help topics match `stat'. Try `help help' or `man -k stat' or `info stat'.
Why can "Invoke it via
env stat ...)" "avoid interference from the shell"?
Can't a command following
envbe an alias, built-in command, or function?
envin front of a command a way to specify that the command is an external executable?