sed -i '1s/^/your text
/' file #Note the addition of the "
" for concluding the new line after the insertion
# Save suffixed file into a new file
sed -e 's/^/suffix/' file > file.new
# Edit file and overwrite with suffixed text
sed -i -e 's/^/suffix/' file
$ sed -i '1s/^/added text /' file