Last active
December 15, 2018 15:26
-
-
Save faststeak/8a381c2ad3dc7978b73dfa7520238013 to your computer and use it in GitHub Desktop.
Fix Splunk bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1="[\u@\h \W]\$" | |
PATH=$PATH:/opt/splunk/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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