Home > Operation and Maintenance > Linux Operation and Maintenance > What is the linux desktop path

What is the linux desktop path

藏色散人
Release: 2023-03-21 09:35:17
Original
3298 people have browsed it

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/" .

What is the linux desktop path

#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
Copy after login

The path of the home directory in Linux

/home/username/

/home/beyond-dhl/
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template