space in dock mac

Shell
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
#When the terminal prompt appears again type the following command
killall Dock
Source

Also in Shell: