I am a beginner in UNIX. I am finding some difficulty in input/output redirection.
ls -l >temp
cat temp
Here why temp file is shown in the list and moreover, it is showing 0 characters.
wc temp >temp
cat temp
here output is
0 0 0 temp
. Why lines, words, characters are 0.
Please help me to undestand this concept.