stat stat (file) Returns status information for the file or filehandle pointed to by file. If file is a symbolic link, returns the information for the file that the link points to.