linux localhost means "computer host name". The host name is used to identify an independent computer on the network; the root in "root@localhost" represents the currently logged-in user, and the administrator account in Linux Is root, the user logs in to the Linux machine as root.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What does linux localhost mean?
Computer host name. Hostname is used to identify an independent computer on the network.
After the Linux system is successfully started, the screen will prompt: localhost login, which means that the system requires a user name and then a password. Otherwise, you will not be able to log in to the system and will not be able to use it.
In Linux, the root of [root@localhost ~]
represents the currently logged-in user. In Linux, the administrator account is root, and the user logs in to the Linux machine as root.
In addition, localhost represents the current computer host name. ~ represents the current home directory. No matter which user identity the user uses to log in, the directory structure of the system remains unchanged, but the relevant permissions have changed.
Extended information:
About the first and second roots in [root@localhost root]# in linux, the meanings are as follows:
The third root in root@localhost root A root means that the current login is the root account, and localhost is the host name. The second root indicates that the current directory is the root directory, and # indicates that the current directory has root permissions.
In addition, the root user's home directory is /root, and other users are usually /home/username, but it can be changed. The home directory mainly stores each user's login information, personal preferences and some personal files, etc.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What does linux localhost mean?. For more information, please follow other related articles on the PHP Chinese website!