CentOS mktemp command interpretation


mktemp test.XXXXXX 

Create a temporary file in the current directory, X is a randomly generated string, and the end of the command returns the file name

 -t test.XXXXXX

Create in the / tmp directory, the other is the same as above, and the result returns the completion path and file name

 -d dir.XXXXXX

Create directory

 -dt dir.XXXXXX

Create a temporary directory in the / tmp directory

Mostly used in shell programming