Of course you can create a file with a list of shell commands and execute it like a program to perform a task. This is called a shell script. This is in fact the primary purpose of most shells, not the interactive command line behavior. Environment variables You can teach your shell to remember things for later using environment variables. A roundabout way to get the same information.
Bash is the way cool shell.
Bash will even complete the name of commands and environment variables. And if there are multiple completions, if you hit TAB twice bash will show you all the completions. Bash is the default user shell for most Linux systems. In this case a very long list of files can be viewed a page at a time. Command Substitution You can use the output of one command as an input to another command in another way called command substitution.