PDA

View Full Version : date date format in command history



Capitob
2023-02-28, 22:56
hi,

I am working on a Kali Linux 2022.4 64 bit VM


in root,
if I add in the /etc/bash.bashrc file the line:
export HISTTIMEFORMAT='%x %T '
use it,
if I likewise add this line in the file:
home/user/.bash.rc


no date appears after a:
>history


It works on Debian;
Why doesn't it work here in Kali Linux?


thanks

Fred Sheehan
2023-04-04, 23:53
because if you want to use that file location, home/user/.bashrc you need to add it to your $PATH
clearly Debian adds it, and and Kali doesn't