Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-08 00:14:59 +00:00
parent a812b3c467
commit f8bee5305f
111 changed files with 540 additions and 310 deletions

33
tldr/linux/netplan Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# netplan
> Network configuration utility using YAML.
> More information: <https://netplan.io/>.
- Apply a network configuration and make it persistent:
`sudo netplan apply`
- Generate backend configuration files:
`sudo netplan generate`
- Configure a network interface to use DHCP:
`sudo netplan set ethernets.{{interface_name}}.dhcp4=true`
- Try configuration changes without applying them permanently:
`sudo netplan try --timeout={{seconds}}`
- Return to previous working configuration after failed apply:
`sudo netplan --debug apply`
- Display the current netplan configuration status:
`netplan status`