Results 1 to 2 of 2

Thread: date date format in command history

  1. #1
    Join Date
    2018-May
    Posts
    1

    date format in command history

    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
    Last edited by Capitob; 2023-03-09 at 14:13.

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    784
    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

Similar Threads

  1. Problems With Wi-Fi and Date & Time
    By eddie@kali in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2021-05-10, 13:23
  2. Replies: 0
    Last Post: 2021-04-02, 03:04
  3. Date and time
    By martinii in forum ARM Archive
    Replies: 1
    Last Post: 2017-02-03, 20:38
  4. Date --set command not working
    By x-corpion in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-05-30, 02:52
  5. How to get date and time displayed for each command
    By JKAD in forum General Archive
    Replies: 3
    Last Post: 2014-06-19, 04:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •