Why custome history file specified with "HISTFILE" option in .bashrc script in not populating ?

Solution Verified - Updated -

Issue

  • Why custom history file specified with "HISTFILE" option in .bashrc script in not populating ? Instead of that  users .history file is populating.

    [test@example ~]$ more .bashrc
    # .bashrc
    
    # Source global definitions
    
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    
    # User specific aliases and functions
    
    export HISTFILE=/var/log/history/.test_bash_history
    export HISTFILESIZE=5000
    export HISTSIZE=5000
    export HISTTIMEFORMAT="%F %T "
    

Environment

  • Red Hat Enterprise Linux 4,5,6
  • bash

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content