- No.
- 27
- Date
- Learning goal
- Terminal Start, lesson 11
- Level
- 2 of 3
Command of the day No. 27: > against >>
Purpose: Writes output into a file: replace or append.
Syntax: command > file, command >> file
Example:
echo first > list.txt
echo second >> list.txt
cat list.txt
first
second
echo new > list.txt
cat list.txt
new Output from the simulator, as on a real Linux.
Options:
Try it in the terminal Share image
Fills in the command. Nothing runs until you press Enter.