Some of the most convenient “tricks” on Linux depend on the use of a handful of special characters. This post takes a look at a number of them and shows how they work.
Using > and >>
Using the > and >> characters will have similar but different effects, and both depend on how you use them in a command. The > character can be used to direct output into a file. For example, these commands will put the specified text into a file. If the file exists, however, any former content will be overwritten. Notice how only one “hello” remains in the file.
$ echo hello > world
$ echo hello > world
$ cat world
hello
Using >>, on the other hand, will add the text provided to the end of a file. If the file doesn’t exist, the command will create it.
To read this article in full, please click here
Source:: , >>, &, &&, and || on Linux” >Network World – Data Center