Goal: enable us to use the iptables command in the terminal
Reference: http://articles.slicehost.com/2008/1/30/centos-setup-page-1#comment-2869
Environment:
- CentOS 5.2
- vi
- bash
Steps:
- Add /sbin to your path by editing your ~./bash_profile: user $ vi ~/.bash_profile
- Append /sbin to the PATH definition. In my file, this looks like: PATH=$PATH:$HOME/bin –> PATH=$PATH:$HOME/bin:/sbin
- Save and close ~/.bash_profile
- Reload ~/.bash_profile: user $ source ~/.bash_profile
thanks for your sharing. its saves my time and work.
thanks again erik
I’m happy it was useful 🙂 Happy Holidays
Thx man — it really helps a lot —
cool. i’m glad it was helpful
My suggestion,
vijay# Export PATH=$PATH:$HOME/bin:/sbin/
that s it.
Thanks, Vijay
Thanks a lot, for sharing, I am sharing on my blog…
Glad it was helpful