---

How to Add Text to the Beginning of File in Linux

Linux command line users are familiar with the concept of redirection operators, which can write output to a file, or read input from a file. Here are two ways to add text to the beginning of a file in Linux: one with a workaround, and one with a command.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis