Results 1 to 2 of 2

Thread: Hello - Please How Do I Reset .Bashrc file in Kali?

  1. #1
    Join Date
    2022-Oct
    Posts
    1

    Hello - Please How Do I Reset .Bashrc file in Kali?

    Hey could anyone help me out? i'm not too sure how it happened but my kali (root user) has become kali# (now non root) when I sudo bash it loads:

    "root@kali-raspberry-pi-zero-2-w:/home/kali#"
    Instead of the orginal:

    "root@kali-raspberry-pi-zero-2-w:/home/kali"

    Anyone know how to reset the .bashrc file in kali? Because it is causing a lot of errors .

    I think I need to reset the .bashrc file in kali. tried resetting with kali-config no luck.

    Just tried

    /bin/cp /etc/skel/.bashrc ~/
    source ~/.sourceReturns:┌──(kali㉿kali-raspberry-pi-zero-2-w)-[~]

    └─$ source ~/.source
    source: no such file or directory: /home/kali/.source


    Still no luck. Any help would be great, thank you

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    a hash # is root, a dollar $ is an ordinary user..

    the .bashrc file is created on a 'per user' basis, so your ordinary usr and the root account have their own .bashrc files in their respective home directories

Similar Threads

  1. Password reset on Kali 2023.1
    By FBS_ANAKONDA in forum ARM Archive
    Replies: 1
    Last Post: 2023-04-10, 07:26
  2. Missing .bashrc it would be awesome if someone could help.
    By ehdunf67 in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2015-04-19, 13:13
  3. HELP Possibly corrupted bashrc file
    By thebrandon in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2014-07-06, 06:39

Posting Permissions

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