timeout command from the shell

Developer from somewhere

[vagrant@localhost ~]$ timeout 2 bash -c "sleep 3"
[vagrant@localhost ~]$ echo $?
124