How do I add a line in Linux?

Nguyễn Trà

New member
How do I add a line in Linux?
Answer
For example, you can use the echo command to append the text to the end of the file as shown. Alternatively, you can use the
printf command (do not forget to use n character to add the next line). You can also use the cat command to concatenate text from one or more files and append it to another file.
 

Tìm kiếm

Back
Top