To append information to the end of a file which already exists, use two greater-than signs. If you type the above commands and then look at the results with a file viewer like more , you'll see a directory listing in short form connected to the end of one in long form. Redirecting input is just as easy. For example, say you want to mail someone the directory list you just made. To connect several files in order, and have them output as one file, use the cat command and redirection.
Errors are special cases.
Here are two more examples for you to experiment with. Go back to Directing input and output . Go back to the tutor page .