In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of linux tempfile command temporary file naming, has a certain reference value, friends in need can refer to. Let's take a look at it with me.
Sometimes you need to temporarily store data when writing Shell scripts, and the best place to store temporary file data is / tmp, because all the contents in this directory will be emptied after the system is rebooted.
The tempfile command comes with it by default only in Debian-based distributions, such as Ubuntu, which is not available in other distributions.
Syntax format: tempfile [parameters]
Common parameters:
$variable
Reference example
Use a file name with a random number as a temporary file name:
[root@linuxcool ~] # temp_file_name= "/ tmp/file_$RANDOM" above are the details of naming temporary files using linux's tempfile command. Have you learned anything after reading them? If you want to know more about it, welcome to the industry information!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.