I am not really good with Linux but I got one premade server which has Linux on it to supervise.
The OS is CentOS 7. I noticed that the up arrow allows the search of past commands (not only for the current session but for all) but for specific reasons I want to remove that option.
As far as I can find \etc\bashrc has no line with \e[A while in \etc\inputrc there was a line for history-search-backwards but for \e[5~. I commented that line but nothing changed. As for ~/.inputrc file it does not exist.
So how can I remove the up arrow search history function?
bind -p-- that will show the current bindings. You'll want to remove the ones for "previous-history" (and presumably "next-history" as well).