How to Create a Temp Directory in Linux
Often while developing installers or scripts, we may be required to create a temporary directory, where the intermediate files will be stored. Once the execution is over, those temporary directory shall be removed.
Objective is to how to create a temporary directory in Linux,
Location of the temporary directory create will be stored in Variable 'A'
Solution Reference:
http://stackoverflow.com/questions/4632028/how-to-create-a-temporary-directory
Often while developing installers or scripts, we may be required to create a temporary directory, where the intermediate files will be stored. Once the execution is over, those temporary directory shall be removed.
Objective is to how to create a temporary directory in Linux,
A=`mktemp -d`
Location of the temporary directory create will be stored in Variable 'A'
Solution Reference:
http://stackoverflow.com/questions/4632028/how-to-create-a-temporary-directory
No comments:
Post a Comment