Create a File with content in oneline – Unix

Balaji D Loganathan

5 sec read

echo ‘One line content here’ | sudo tee /etc/apache2/filename.txt
You can use echo “One line content here’ > filename.txt if the folder is not protected.

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *