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> 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> && <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 “>” and “>>”.</p>
<p>Examples:</p>
<p><code>echo "wife : Sandra" > family.txt</code></p>
<p>Inputs <strong>wife : Sandra</strong> into the <code>family.txt</code> file. you can , <code>cat family.txt</code> to see the result. <strong>Note </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>