Edit (command)

Created by Yuriy Andamasov, Modified on Thu, 18 Jan 2024 at 06:12 PM by Srividya Anantapatnaikuni

Article review date2024-01-18
Validated for VyOS versions
1.2.5, 1.3.5, 1.4.0, 1,5.x

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.

Syntax

[edit]
vyos@vyos-rtr# edit 

Examples:

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

[edit]
vyos@vyos-rtr# edit interfaces
[edit interfaces]
vyos@vyos-rtr#

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

[edit]
vyos@vyos-rtr# 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:

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


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article