Linux & the Command Line / Power tools
Lesson 17 of 30
Redirection
> writes output to a file (replacing it), >> appends, and 2> captures errors.
Key points
- > overwrites
- >> appends
- 2>/dev/null hides errors
ls -la > files.txt
echo done >> log.txtQuiz · +10 XP
Which symbol appends output to a file?
Log in to save progress and earn XP.