Select Random Files From Directory (Bash)

October 19, 2020
ls | shuf -n 1

Get full path and file only

find ~/Pictures/wallpaper -type f | shuf -n 1
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.