Skip to content

Instantly share code, notes, and snippets.

@faststeak
Last active December 15, 2018 15:26
Show Gist options
  • Save faststeak/8a381c2ad3dc7978b73dfa7520238013 to your computer and use it in GitHub Desktop.
Save faststeak/8a381c2ad3dc7978b73dfa7520238013 to your computer and use it in GitHub Desktop.
Fix Splunk bash
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PS1="[\u@\h \W]\$"
PATH=$PATH:/opt/splunk/bin
If the splunk user's home directory is wrong:
usermod -m -d /opt/splunk splunk
# OR /opt/splunkforwarder if this is a forwarder
Simple .bashrc File:
PS1="[\u@\h \W]\$"
PATH=$PATH:/opt/splunk/bin
# Or this, if Splunk isn't in the default location:
PS1="[\u@\h \W]\$"
PATH=$PATH:~/bin
Add this to .bash_profile:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment