Back to DevOps Series
In depth:

In depth:

Syntax:
Loading...
Meaning:
Take the command's stdout and write it into a file.
Example:
Loading...
Instead of printing
Loading...
to the terminal, it is stored inside file a.
 
 

> Overwrites Files :

Example 2 :

When you use
Loading...
the shell:
  1. Opens a
  1. Empties (truncates) it
  1. Connects ls output to a
  1. Runs ls
Old contents disappear.
Before:
Loading...
After:
  • If the folder contain the a b c as file then this is become the output because output of ls written in the a file:
Loading...