What echo > file does
Write text into a file, replacing whatever was in it.
echohello>file.txt
echo— command — print texthello— argument: a file, a folder, or text>— write the output to a file (overwriting it)file.txt— argument: a file, a folder, or text
What it does when you run it
$ echo hello > file.txt $ cat file.txt hello
Run it yourself
The same files. Nothing here can break, and nothing leaves your browser.
Where you use it
Explain other commands
Written by Mikhail Kuzmitskii