Why do we need mktemp?

Viewed 57567

I do not understand the function of mktemp and what a temporary file means.

Whats the difference between say touch xyz and mktemp xyz (apart from the fact that mktemp will create some file with xxx appended to it and will have 600 permissions?)

Please clarify.

5 Answers
Related