Greetings and happy new year to you and everyone else!
Edit your $HOME/.bashrc file
it looks like:-
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
_________________________
now:-
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
TMOUT=100
#this will cause ur shell to automatically logout after an inactivity of 100 seconds,
________________________________________
HISTSIZE
Bash's history saves several hundred of your most recent commands in a file, by default called .bash_history. You can change the size of this by setting HISTSIZE to whatever you need.
Logout or reboot ur machine, it will work!
cheers