Learn all about control flow statements, including exit statuses, logical expressions, file, string, arithmetic tests, if-else and case statements.
Learn about exit statuses, how to retrieve the last exit status, POSIX exit statuses.
Learn how to use the test command, or the [ symbol to evaluate logical expressions.
Perform tests on a file to see if it exists, what type it is, and its permissions settings. Furthermore, compare it to another file with the comparison operator.
Learn how you can use string tests to check two strings for equality and null values.
Learn how to get the shell to evaluate arithmetic equations, and how to test with numbers.
Learn how to write an if-else statement in shell scripting and make your own coin-tossing game!
Learn how to simplify if-else statements with the case construct. Also learn how to build a rock-paper-scissors game through shell scripting!