Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

List files and sort by date and time in Linux

$ ls -t


OR


$ ls -tr

To list files or directories and sort by last modified date,
	use the -t option. To reverse the sorting order,
	use the -r parameter as follows: ls -tr:
 
PREVIOUS NEXT
Tagged: #List #files #sort #date #time #Linux
ADD COMMENT
Topic
Name
1+7 =