Difference between ">>[fileA]" and ">[fileA]" command in Ubuntu/Linux?

by coding_ninza   Last Updated January 11, 2018 17:02 PM

I am a newbie In Ubuntu, I have learned these commands

  >> [fileA] - append to fileA, preserving existing contents

and this command,

  >[fileA] - output to fileA, overwriting contents.

I have seen that both are creating files in the Home of the Ubuntu, One is [fileA] and another one is file[A] except this, I can't find any difference between these commands. I tried to find it on google but there is no proper description.

Please give a description in detail for these two commands with an example.

Related Questions

How to change terminal theme / behavior?

Updated August 15, 2015 18:01 PM

How disable blinking cursor in gnome-shell's terminal?

Updated February 15, 2018 18:02 PM

How to make text not wrap in gnome-terminal?

Updated August 02, 2016 08:02 AM