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/01 Report--
This article mainly explains "how to achieve Linux to files or directories to create soft links, hard links", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to achieve Linux to files or directories to create soft links, hard links" it!
The following command is used when we need to use the same file in different directories.
Command: ln
Function: to establish a synchronous link for a file in another location
Syntax: ln [option] source file target file
Description: (1) synchronization: if you change one place, other links will also change.
(2) soft link: ln-s source file target file, establish a virtual link under the target file (shortcut key)
Hard link: ln source file target file, create a file the same size as the source file under the target file (real)
Commonly used: ln-s source file target file
For example: ln-s / home/fei/workspace / var/www# create a workspace shortcut in the var/www folder
Note: file permissions issue, provided / home/fei/workspace is accessible
Thank you for your reading, the above is "how to achieve Linux to files or directories to create soft links, hard links" of the content, after the study of this article, I believe you on how to achieve Linux to files or directories to create soft links, hard links to this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.