Results 1 to 2 of 2

Thread: My aliases are not loaded in kali 2021

  1. #1
    Join Date
    2017-Nov
    Posts
    14

    My aliases are not loaded in kali 2021

    Hi,
    I've tried numerous ways and numerous file but i must be missing something.
    I can't figure where to place my .bash_alaises file.
    It is simply not read.
    Even placing a simple "echo" in either .bashrc or .profile is not echoed.
    So which file is always loaded in a terminal?

    Thanks

  2. #2
    Join Date
    2019-Dec
    Posts
    8
    It's probably because the default is now Zsh. Ever since the 2020-4 release the default shell is Zsh.

    https://www.kali.org/blog/kali-linux-2020-4-release/

    Type
    Code:
    echo $SHELL
    to see whether your shell is bash or Zsh

    If it's Zsh then you need to add your aliases to the .zshrc file instead of the .bashrc file.

    HTH,

    Robert

Similar Threads

  1. Kali ignores /etc/aliases
    By s3cu5e in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2022-10-07, 18:15
  2. Replies: 6
    Last Post: 2022-03-07, 18:47
  3. Replies: 0
    Last Post: 2021-04-28, 03:18
  4. .bash_aliases customized aliases does not work in Kali 2020.4
    By pranav.mistry003 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-12-21, 20:29
  5. Replies: 0
    Last Post: 2014-05-02, 09:04

Posting Permissions

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