Complex way, but allowed you to customise the output.
find /home/juzhax/ -type f -printf '%T- %p\n' | sort | head -n 1
Simple and shorter way
ls -lt | tail -1
Extra: Find the newest files in shell
ls -ltr | tail -1
Complex way, but allowed you to customise the output.
find /home/juzhax/ -type f -printf '%T- %p\n' | sort | head -n 1
Simple and shorter way
ls -lt | tail -1
Extra: Find the newest files in shell
ls -ltr | tail -1