In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Create the / app/rootdir directory and copy all the files under / root to this directory, requiring that the original permissions be retained
Command parsing:
Mkdir: create an empty directory
-p: add this parameter to create a multi-level directory at the same time. If this parameter is not added in this example, you need to create / app first, and then / app/rootdir.
; sign: it means that after the execution of the previous command, the next command is executed, and multiple commands are written on one line, so you don't have to wait until the previous command has been executed before typing the next command.
Cp: copy a file or directory
-p: equivalent to-- preserv=mode,ownership,timestamp, which means that it is copied along with the permission attribute of the file.
/ root/*: represents all files under / root
As you can see in the above figure, after the command is executed, the files and file properties in the two directories are consistent.
two。 Using the command line expansion function, create / tmp/a1, / tmp/a2, / tmp/a1/a, / tmp/a1/b, and create directories under the / tmp directory: xroomy, xroomz, qroomy, qroomz
Command parsing:
Mkdir: create an empty directory
-p: add this parameter to create a multi-level directory at the same time
{}: represents a collection, putting multiple values that need to be combined together, eliminating the hassle of typing commands for each value. For example, in the example above, the x _ quotation _ _ {y _ quoz} can be combined into {x _ quoz} _ {y _ quoz}
Tree: display directories and files in a tree structure
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.