mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 05:00:37 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/linux/uci
Normal file
37
tldr/linux/uci
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# uci
|
||||
|
||||
> Manage OpenWrt configuration files.
|
||||
> More information: <https://openwrt.org/docs/techref/uci>.
|
||||
|
||||
- Fetch a value:
|
||||
|
||||
`uci get {{network.lan.ipaddr}}`
|
||||
|
||||
- List all options and their values:
|
||||
|
||||
`uci show {{network}}`
|
||||
|
||||
- Set a value:
|
||||
|
||||
`uci set {{config}}.{{section}}.{{option}}={{value}}`
|
||||
|
||||
- Add a new section:
|
||||
|
||||
`uci add {{config}} {{section}}`
|
||||
|
||||
- Delete a section or value:
|
||||
|
||||
`uci delete {{config}}.{{section}}.{{option}}`
|
||||
|
||||
- Commit changes:
|
||||
|
||||
`uci commit {{config}}`
|
||||
|
||||
- Discard uncommitted changes:
|
||||
|
||||
`uci revert {{config}}`
|
||||
Reference in New Issue
Block a user