Surprisingly, there is no banner command on CentOs, thats why you are getting bash banner command not found or -bash: banner: command not found error. But you can install banner command by follow the given steps below and it will work perfectly as you can