To send several commands, one after another, separate each of them with a semicolon. For example:
$ ls > list ; sort list > list1This command sequence creates a list of files in a file called list. It then sorts the contents of the file alphabetically and redirects the output into a file called list1. The command after the semicolon is not executed until the command before it has completed; the shell waits for the earlier commands to finish.