You can store Linux commands as variables in shell scripts by using the syntax: VARIABLE_NAME=$(COMMAND-TO-BE-EXECUTED)