The Linux desktop path is "/home/beyond-dhl/Desktop", where "beyond-dhl" is the user name of the corresponding user; the path of the home directory in Linux is "/home/beyond-dhl/" .
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What is the Linux desktop path?
The corresponding path to the desktop in Linux:
The corresponding path to the desktop is /home/peter (corresponding to the user’s Username)/Desktop
The path of the desktop in Linux is:
/home/username/Desktop
/home/beyond-dhl/Desktop
The path of the home directory in Linux
/home/username/
/home/beyond-dhl/
Related extensions:
Linux directories and paths
1. Absolute paths and relative paths
Same as Windows, linux There is also a difference between absolute paths and relative paths:
The absolute path of Windows starts from a certain disk. For example, the absolute path of the win desktop is:
cd C:\Users\Administrator\Desktop
And the relative path of win, such as There are two files test1.txt and test2.txt on the desktop, then their relative paths are their mutual file names.
The relative path of Linux is the same as that of win, while the absolute path is written from /, which is the root directory (root). For example, the desktop path of Linux is:
cd /usr/Administrator/home/Desktop
It is directed by the path Linux directory structure
The difference between absolute paths and relative paths is that when the anchored file is moved, the absolute path can still find the target file, but the relative path cannot. They each have their own advantages and disadvantages. Relative paths can maintain a relatively complete reference chain when a large number of files are moved as a whole; while absolute paths are more accurate and clear when locating files.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is the linux desktop path. For more information, please follow other related articles on the PHP Chinese website!