I have uploaded a file to a Linux computer. I do not know its name. So how to view files through their last created date attribute ?
I have uploaded a file to a Linux computer. I do not know its name. So how to view files through their last created date attribute ?
Assuming you know the folder where you'll be searching it, the most easy solution is:
ls -t | head -1
# use -A in case the file can start with a dot
ls -tA | head -1
ls -t will sort by time, newest first (from ls --help itself)head -1 will only keep 1 line at the top of anything