How do I know if bash is installed on my Mac?

How do I know if bash is installed on my Mac?
Answer
Find bash shell version using the –version option
Just
pass the –version to the bash command
to show version information for this instance of bash shell on the screen and exit successfully: bash –version echo $?
 

Tìm kiếm

Back
Top