zsh globbing: global expansion shortcuts

ls **/*
list all, recursive


ls **/*.(png|jpg|gif)
list all images


ls *foo*~*bar*
list all with foo except those containing bar


ls *(*)
list all executable


ls *(.m-1)
list files modified within the last day


ls **/*(.m-1)
list files modified within the last day recursively


ls **/*(Lk+100)
list all files larger than 100k recursively


ls **/*(Lm+100)
list all files larger than 100M recursively


ls **/*(.om[1])
most recently modified file


ls **/*(.Om[1])
least recently modified file


ls **/*(OL[1,3])
three largest files

https://wiki.zshell.dev/community/zsh_guide/roadmap/expansion
NOTE: examples use the light vertical bar instead of the pipe
U+2758 : LIGHT VERTICAL BAR
U+007C : VERTICAL LINE {vertical bar, pipe}