'How to move latest date 500 files in linux

in one directory i have 10000 files, so i need to move only 500 files with latest date via linux command line . Some one please help me on this , thanks in advance



Solution 1:[1]

I bet you need to combine this:

https://unix.stackexchange.com/questions/12976/how-to-move-100-files-from-a-folder-containing-thousands

with this: https://www.tecmint.com/sort-ls-output-by-last-modified-date-and-time/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jose Cabrera Zuniga