Is there any way to get full filename of latest file (creation time or modification time) in directory?
filename.jpg
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityIs there any way to get full filename of latest file (creation time or modification time) in directory?
filename.jpg
This might do what you want:
$ ls -t | head -n 1
If not, you might try copying and pasting your question directly into your search engine. That's what I did to find this answer - it would work for you, too - even if you didn't know that man ls
or man find
might be useful commands.