← 返回文章列表

Piping In Linux

Linux piping in summary

SymbolPurpose
|pipe standard out from one program to standard input of another
<redirect standard in from a file
>redirect standard out to a file, deleting its current contents
&>redirect both standard out and standard error to a file, deleting its current contents
>>redirect standard out to a file, adding to the end of tis current contents
&>>redirect both standard out and standard error to a file, adding to the end of its current contents