# Change Kibana.yml settings from command line

**URL:** <https://discuss.elastic.co/t/change-kibana-yml-settings-from-command-line/366623>\
**Category:** Kibana\
**Created:** [September 16, 2024, 2:28pm UTC](https://discuss.elastic.co/t/change-kibana-yml-settings-from-command-line/366623 "2024-09-16T14:28:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnm908](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bnm908/32/123737_2.png) [@bnm908](https://discuss.elastic.co/u/bnm908)\
**Post date:** [September 16, 2024, 2:28pm UTC](https://discuss.elastic.co/t/change-kibana-yml-settings-from-command-line/366623/1 "2024-09-16T14:28:59Z")

</div>

Hi, I just started learning Elastic and I was wondering how I change a specific .yml setting for kibana in the terminal? For example, let's say I wanted to change the server.port so I tried the following command below.

sudo -u kibana /usr/share/kibana/bin/kibana --server.port=5602

This did not work. After doing some research, I believe I have to use the path where the kibana executable is? How do I find that path?
