Skip to main content

Posts

Showing posts from June, 2013

Firewall (iptables) on Linux

Needed to disable the firewall on a new Centos virtual machine I'm setting up. Used the following commands from NixCraft Disable Linux Firewall Type the following two commands: [ root@machine ~] /etc/init.d/iptables save [ root@machine ~] /etc/init.d/iptables stop Turn off firewall on boot: [ root@machine ~] chkconfig iptables off Enable Linux Firewall  Type the following command to turn on iptables firewall: [ root@machine ~] /etc/init.d/iptables start Turn on firewall on boot: [ root@machine ~]# chkconfig iptables on

Setting history for linux environment

The first thing do do is to check whether the history is set: set -o | grep history If it is off then add the following to the ~/.bashrc: set -o history At the same time set the environment variables for holding the history export HISTFILE=$HOME/.bash_history export HISTSIZE=500 export HISTFILESIZE=500 This should have you up and running to get the history To make sure the effects take place change the user with [test@server ~] oracle -