Using the following command, for this example we are going to change hostname from 18-10 shown in the above screenshot to ubuntu-1810.įor the changes to take effect, the simplest is log out and log in again. Also, it allows us to change the hostname.įor, view current hostname using nmcli, in a terminal (Ctrl + Alt + T) we will write: This command is used to create, display, edit, delete, activate and deactivate network connections, as well as to control and display the status of the network device. Nmcli it is command line tool to control NetworkManager that will offer us the state of the network. Next we will see other options that will basically allow us to do the same. If you want to consult that article, follow this link. That is why we will not see it in the following lines. ![]() As I mentioned before, the colleague already told us about him in the article published some time ago. ![]() ![]() 1.3 Change the hostname using the / etc / hostname fileĪ handy tool called hostnamectl will allow us to manage the hostname of the system easily.1.2 Change the hostname using the nmtui command.
0 Comments
Leave a Reply. |