It will sort the entries of the given directory, alphabetically. ls -lu.
ls -t command in Linux. 理解Linux文件3个时间信息（access time，modify time，change time） 在Linux中使用stat命令来查看文件的详细信息. Simple ls Listings. Everyone who’s spent some time using the Linux terminal knows that, by default, ls lists the files and directories in the current directory. ls. A quick question from my mail bag: How do I display or get the date when a file was last time accessed? ls -t option flag sorts files/directories list by time/date. Default list: $ ls Desktop Downloads Pictures Templates Videos Documents Music Public todo.txt $ List sorted by time/date $ ls -t Pictures Desktop Downloads Public Videos todo.txt Documents Music Templates $ With -lt:, sort by and show access time; with -l: show access time and sort by name; otherwise: sort by access time.-U: Do not sort; list entries in directory order.-v: Natural sort of (version) numbers within text.-w, --width=cols: Assume screen width cols instead of current value.-x: List entries by lines instead of by columns.-X RELATED: How to Create Aliases and Shell Functions on Linux. 如图所示，会出现3个类型的时间，分别是Access，Modify，Change。 access time：表示最后一次访问（仅仅是访问，没有改动）文件的时间 。 리눅스 mtime (modification time, 수정 시간) 파일의 내용이 수정될 때 mtime 시간이 변합니다. As may already know, the ls command lists a directory contents with additional information such as date and time of modification or access, permissions, size, owner, group etc. ls 명령의 u 옵션을 이용하여 access time을 확인할 수 있습니다. 보통 mtime이 변경되면 ctime, atime 값이 모두 변경됩니다. The best and simplest way is to use stat command. If you want to have your listing produced ina single column, use the -1 (one file per line) option: ls -1 It displays file or file system status such as: => File size => File type => Inode number => UID/GID => File access … Continue reading "Linux display the date when a file was accessed with stat command" Syntax $ ls -t [options] [file|dir] Examples.