Read about absolute and relative path in unix, The latest news, videos, and discussion topics about absolute and relative path in unix from alibabacloud.com
1. Understanding of Basic Concepts
Absolute path: Absolute path is the real path of the file or directory on your home page on your hard disk, (URL and physical path) such as:C:\xyz\test.txt represents the absolute path of the Test.txt file. Http://
In a logical sense, the relative path of the directory is less than the absolute path. Like what.. The/admin/is significantly less than the directory traversed by c:/wamp/www/cms/templates/admin/.
Scenario: When using include (_once), require
Turn from 49453953The following paths are described for Windows, and other platforms are not very well known for the time being.When you open a file in a py file that you write, you often see the following path:Open ('aaa.txt') open ('/data/bbb.txt'
Relative and absolute paths in C + + and the difference between a slash and a backslash
File path
Forward slash and back slash
Forward Slash, also known as the left slash, the symbol is "/", the backslash is also called the right slash, the symbol
Python cross-platform Program-talking about the relative path and absolute path of Python [zz]Reprinted please indicate the source http://blog.csdn.net/porcupinefinal/ (respect for labor results)This may be a headache for beginners of Python, but it
A good PHP code, whether put on Windows or Linux, different versions of PHP, can correctly output the results, is a good code.
Said easy things, do not very easy, often write code are functional guidance, the current environment, to catch the time
A good php code, whether in windows or linux, different versions of php, can correctly output the results, is a good code. It is not easy to do things that are easy to say. in many cases, writing code is function-oriented. in the current environment,
File Path
Forward and backward slashes
A forward slash, also known as a left slash, indicates "/"; a backslash, also known as a right slash, indicating "\". The file path can be divided into absolute and relative paths:
1. absolute path
Http://dev2dev.cnblogs.com/archive/2005/10/10/251894.aspxGetting Started with Unix OS and basicsUnlike the familiar Windows user interface and usage habits, UNIX is often used command run, very flexible operating system, the current products are
There are two types of paths: relative path and absolute path. For a Unix-like system, the absolute path is the path starting. A relative path is a path that does not start with a slash.
In fact, there is only one path in the operating system,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.