Must Know I/O Redirection commands in Linux

<p>Working with Linux terminals is a very beautiful and exciting journey. we looked at 3 basic commands in my last post. today we will explore the I/O redirection is a powerful feature.</p> <p>I/O: input/Output redirection.</p> <p>In one word, the I/O redirection is a feature by which through commands we make redirection in and out of directories, manipulate files, file content, and more.</p> <p>Always remember that the<strong>&nbsp;computer is commendable</strong></p> <p><strong>Task 1</strong>: Create a dir with the name lesson2 and enter the dir lesson2</p> <p><code>mkdir lesson2</code>&nbsp;&amp;&amp;&nbsp;<code>cd lesson2</code></p> <p><strong>Task 2</strong>: Create 3 files hello, family, friends</p> <p><code>touch hello family friends</code></p> <p><strong>Standard Output</strong>: used to direct contents to the display. example &ldquo;&gt;&rdquo; and &ldquo;&gt;&gt;&rdquo;.</p> <p>Examples:</p> <p><code>echo &quot;wife : Sandra&quot; &gt; family.txt</code></p> <p>Inputs&nbsp;<strong>wife&nbsp;: Sandra</strong>&nbsp;into the&nbsp;<code>family.txt</code>&nbsp;file. you can&nbsp;,&nbsp;<code>cat family.txt</code>&nbsp;to see the result.&nbsp;<strong>Note&nbsp;</strong>it overrides any content in the file family.txt.</p> <p><a href="https://medium.com/@omosgoerge/must-know-i-o-redirection-commands-in-linux-95cb8a83d28a">Click Here</a></p>
Tags: Commands Linux