check os x version code example Example 1: check laravel version php artisan --version Example 2: check redis version redis-server --version