Skip to content
zero2vibecodelearn vibe coding

What echo > file does

Write text into a file, replacing whatever was in it.

echohello>file.txt
  • echocommand — print text
  • helloargument: a file, a folder, or text
  • >write the output to a file (overwriting it)
  • file.txtargument: 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.

Explain other commands

Written by Mikhail Kuzmitskii