Just putting Linux Kali under the root opened a normal terminal - in color and with the current directory showing. But as soon as I entered the normal user, instead of the terminal, the simplest bash was opened from the same button, namely, only the dollar sign at the beginning of the line and without colors. How to fix it?

  • five
    It's all the same bash, don't be scared. The command line prompt (the one that is now dollar) is set in ~/.bash_profile via the PS1 environment variable (for more information on what you can write there: calculate-linux.org/blogs/ru/193/show ). As for the coloring of other things , I think, fit habrahabr.ru/post/119436 - ноя
  • And how can I just copy these settings from the root to the main user? - Constantor
  • Even the tab does not work on the primitive. - Constantor
  • Copy the relevant parts from /root/.bash_profile . If this file is missing, check if ~/.bash_profile overrides the PS1 and coloring settings from /etc/profile . - ߊߚߤߘ
  • Please /root/.bash_profile contents of ~/.bash_profile and /root/.bash_profile in the question. Without them, you can only make assumptions. - ߊߚߤߘ

1 answer 1

most likely, for these users indicated the use of different shells.

You can find out which shell is listed, for example, with the command:

 $ getent passwd пользователь 

in the output, the last field is the path to the shell:

 пользователь:x:1000:1000:,,,:/home/пользователь:/bin/bash 

you can change the shell, for example, using the chsh program:

 $ sudo chsh -s /bin/sh пользователь