How to check the last modified time of a file in Linux Ubuntu. Learn which command will show the last access time of a file in Unix; stat command in Linux with examples. stat Command stat command return information about a file. Function: Display file (default) or filesystem statusSyntax: stat [-FLnq] [-f format|-l|-r|-s|-x] [-t timefmt] […]