Mac has sleeping button on the apple icon -> sleep. Another effective way is sleeping from command line
pmset sleepnow
this command sleeps mac immediatelly
Sleeping delay
if we want to sleep after specific period, we can wait command awhile, and after system trigger command
for example sleeping after 10 seconds
sleep 10;pmset sleepnow
Message length should be less than 1024 character!