Which of these is the correct method for appending “foo” in /tmp/bar file?

Question:Which of these is the correct method for appending “foo” in /tmp/bar file?

1.echo foo > /tmp/bar

2.echo foo >> /tmp/bar

3.echo foo | /tmp/var

4./tmp/bar < echo foo


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!