In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what is the use of Linux install command". In daily operation, I believe many people have doubts about the use of Linux install command. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt about "what is the use of Linux install command?" Next, please follow the editor to study!
Linux common commands the install command is used to install or upgrade software or backup data, and its permissions are for all users.
Install install or upgrade software or backup data
Add that the install command is similar to the cp command in that you can copy files / directories to a specified location. However, install allows you to control the properties of the target file. Install is usually used for the makefile of a program and is used to copy the program to the target (installation) directory.
Syntax install [OPTION]... [- T] SOURCE DEST install [OPTION]... SOURCE... DIRECTORY install [OPTION]... -t DIRECTORY SOURCE... Install [OPTION]... -d DIRECTORY... In the first two formats, multiple files are copied to or to existing ones, and the permission mode and owner / group are set. In the third format, all specified directories and their home directories are created. The parameters that the long option must use are also necessary when using the short option.
Option-- backup [= CONTROL]: back up each existing destination file. -b: similar to-- backup, but does not accept any parameters. -c: (this option is not processed). All parameters are treated as directories, and all home directories of the specified directory are created. -D: all home directories before creation, and then will be copied to; useful in the first use format. -GMAT talk group = group: set the group to which you belong, rather than the group to which the process currently belongs. -mmam talk mode = mode: set your own permission mode (like chmod) instead of rwxr-xr-x. Owner: set the owner by yourself (for superusers only). -pmam talk about the visit / modification time of the file as the time attribute of the corresponding destination file. -smam copyright strip: use the strip command to delete symbol table, which is only applicable to the first and second formats. -Smam copyright suffix = suffix: the backup file is specified by yourself. -vmam Meltel verbose: print the name when processing each file / directory. -- help: display this help and leave. -- version: displays the version information and leaves. Instance install-d [option] DIRECTORY [DIRECTORY...] Support multiple, similar to mkdir-p support recursion. For example, the result of install-d a/b/c e _ bind f is the same as that of mkdir-p a/b/c e _ hand f.
Install [option] SOURCE DEST copy the SOURCE file (the test cannot be a directory) to DEST file (file):
The result of install a _ d _ e c is similar: cp a _ r _ e c # Note that c must be a file. Useful options-D:
The effect of install-D x a/b/c is similar: mkdir-p an a/b/c install b & & cp x a/b/c install [option] SOURCE [SOURCE...] DIRECTORY copies multiple SOURCE files to the destination directory:
Install a _ b * d, where d is the directory.
At this point, the study of "what is the use of Linux install commands" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.