Check out example codes for "bash create temporary folder". It will help you in understanding the concepts better.

Code Example 1

#!/bin/bashtmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)echo $tmp_dir # ... rm -rf $tmp_dir 

Learn ReactJs, React Native from akashmittal.com