There must be a space between command words and brackets. ( if [ $number != 1 ]; then NOT if[ $number != 1 ]; then ) You can run more than one command at once cmd a; cmd b; cmd c CTRL-C end currently running program (SIGINT) CTRL-Z go back to command line