In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Xiaobian to share with you the absolute path and relative path of the example analysis, I believe most people do not know how, so share this article for your reference, I hope you read this article after a lot of gains, let us go to understand it together!
Using a relative path to access files is to access files by directory starting with the "current directory." A relative path is the path from the current path, and refers to the path relationship with other files (or folders) caused by the path where this file is located.
Absolute and relative paths
Absolute Path:
is a path from drive letter, such as
C:\windows\system32\cmd.exe
Relative path:
is the path from the current path, if the current path is C:\windows
To describe the above path, simply type
system32\cmd.exe
In fact, the strict relative path should be written as.\ system32\cmd.exe
Among them,... Indicates the current path, which can be omitted in the case of channels and cannot be omitted only in special cases.
If the current path is c:\program files
To invoke the above command, type
..\ windows\system32\cmd.exe
Among them,... Parent directory.
If the current path is c:\program files\common files
you need to enter
..\..\ windows\system32\cmd.exe
In addition, there is a special absolute path that does not contain a drive letter, such as
\windows\system32\cmd.exe
Regardless of the current path, the specified program is automatically looked up from the root directory of the current disk.
The above is "absolute path and relative path example analysis" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.