Posted in Linux commands

Make temporary Files or directories

Sometimes I need a temporary file or a temporary directory with a unique name in my scripts. Of course I can create a file in /tmp with the actual time in its name. But what if some other user has the same idea, and the scripts run at the same time? Here comes mktemp.

Continue reading “Make temporary Files or directories”