How to install rlwrap wget http://download.fedora.devel.redhat.com/pub/fedora/linux/development/rawhide/source/SRPMS/r/rlwrap-0.41-3.fc22.src.rpm (You can find it on Google with keywords: rlwrap site:redhat.com; can also download from other sites) sudo su - cd rpm -ivh rlwrap-0.41-3.fc22.src.rpm cd /root/rpmbuild/SPECS #may or may not be here, or /usr/src/redhat/SPECS; if neither, find it with strace -f -e trace=file -o tmpfile rpm -ivh ... rpmbuild -bb rlwrap.spec cd /root/rpmbuild/RPMS/x86_64 rpm -ivh rlwrap-0.41-3.el6.x86_64.rpm /usr/bin/rlwrap is the only file you need. Can copy to other boxes, as long as they have the same Red Hat version (cat /etc/redhat-release). For sqlplus: alias s='rlwrap $ORACLE_HOME/bin/sqlplus' or create file s with this line: rlwrap $ORACLE_HOME/bin/sqlplus "$@" (If you call it sqlplus instead of e.g. s, make sure its path is earlier than $ORACLE_HOME/bin in $PATH.) Ref: SQL*Plus command line history completion (Doc ID 460591.1): https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=460591.1