Q
Q
Questions00012022-04-10 14:35:28
linux
Questions0001, 2022-04-10 14:35:28

How to write text to text file using console command?

Let's say I created a file myname.txt with a command touch myname.txtand how can I write some text to the file myname.txt in the console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2022-04-10
@Questions0001

Well, for example, output redirection:
echo "some text" > myname.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question