Show recents 
Show recently used apps in a separate section of the Dock.
- Tested on macOS: 
- Sonoma
 - Ventura
 - Monterey
 - Big Sur
 - Catalina
 - Mojave
 
 - Parameter type: bool
 
Set to true (default value) 
Display recent apps in the Dock
bash
defaults write com.apple.dock "show-recents" -bool "true" && killall Dock
Set to false 
Do not display recent apps in the Dock
bash
defaults write com.apple.dock "show-recents" -bool "false" && killall Dock
Read current value 
bash
defaults read com.apple.dock "show-recents"Reset to default value 
bash
defaults delete com.apple.dock "show-recents" && killall DockSet value from UI 
- Access Dock settings from macOS UI
 - Set "Show recent applications in Dock" dropdown value