bash - What does 'echo 0 > foo' mean? -


i know code mean?

echo 0 > foo 

completely new unix , bash commands. lots of stuff learn, need quick answer question.

it echoes 0 file named foo. in other words, redirects output, 0, file named "foo", instead of showing on screen.

from basic wikipedia example on redirection:

command1 > file1

executes command1, placing output in file1, opposed displaying @ terminal, usual destination standard output.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -