How do you write to a file in Unix?

How do you write to a file in Unix?
Answer
You can use the cat command to append data or text to a file. The cat command can also append binary data. The main purpose of the cat command is to display data on screen (stdout) or concatenate files under Linux or Unix like operating systems. To append a single line you can use the echo or printf command.
 

Tìm kiếm

Back
Top