Difference between revisions of "Edit (command)"

From VyOS Wiki
Jump to: navigation, search
(Page creation)
(No difference)

Latest revision as of 02:22, 28 March 2017

The `edit` command allows you to navigate down into the configuration tree. To get back to an upper level, use the `up` command or use the `top` command to get back to the upper most level. The [edit] text displays where the user is located in the configuration tree.


vyos@vyos# edit <section>


To navigate from the top level down to the interfaces section:

vyos@vyos# edit interfaces
[edit interfaces]

As expected, the [edit] changed to [edit interfaces]. It's possible to navigate down multiple levels at once:

vyos@vyos# edit interfaces ethernet eth0 vif 222
[edit interfaces ethernet eth0 vif 222]

It's possible to navigate to any node further down, it's not necessary to start from the top:

vyos@vyos# edit interfaces
[edit interfaces]
vyos@vyos# edit ethernet eth0
[edit interfaces ethernet eth0]

Command tree