Hi Friends, I have a question. How do you create a file on a specific node?

Lokesh Sinha:
Hi Friends,
I have a question. How do you create a file on a specific node?

unnivkn:
touch file1

unnivkn:
echo “Hello World” > file2.txt

Lokesh Sinha:
@unnivkn Many thanks for the reply.
but how can I ensure the file will be created on that particular node, if there are multiple nodes?

unnivkn:
ssh node01

unnivkn:
ssh node02

Lokesh Sinha:
Thanks, I was using sh, which did not work.

unnivkn:
I recommend you to go through this: https://beta.kodekloud.com/courses/the-linux-basics-course/