mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 21:07:00 +00:00
edit change hostname
This commit is contained in:
parent
5f3a39de94
commit
2c66e33ec0
@ -1891,6 +1891,12 @@ sudo gpasswd -a nice docker
|
|||||||
```bash
|
```bash
|
||||||
sudo hostname your-new-name
|
sudo hostname your-new-name
|
||||||
```
|
```
|
||||||
|
if not working, do also:
|
||||||
|
```bash
|
||||||
|
hostnamectl set-hostname your-new-hostname
|
||||||
|
```
|
||||||
|
and edit /etc/hostname by replacing your new hostname
|
||||||
|
|
||||||
|
|
||||||
##### List installed packages
|
##### List installed packages
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user