mktemp command

Use any one of the following command to create temporary empty file names. The first command is special as it use the redirection operator >, the redirection refers to the standard output. So you are creating a new file or destroying existing file:


Various methods exists to create a random temporary file name. This is useful if your application/shell scripting needs temporary unique file names. Method #1: Use of $RANDOM bash shell variable 1) At shell prompt type command: # echo $RANDOM You will get random value every time. This variable can be use to create unique file […]