or you install this app https://splunkbase.splunk.com/app/1607/ and access it in the Splunk UI without worrying where to
cd to 😉 You will be directly in the right place and can start using the
cli as Splunk user...
You need a shell account on the server on which Splunk runs (Windows, Linux). You also need permission to run Splunk (SPLUNK_HOME/bin/splunk).