LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   black and white display for konsole terminal (https://www.linuxquestions.org/questions/linux-desktop-74/black-and-white-display-for-konsole-terminal-4175603469/)

intmail01 04-08-2017 02:31 PM

black and white display for konsole terminal
 
Hello,

Could sone tell me how to configure konsole to use color in root user . Almost command show black and white but only few command like tree are colored.
This happen only when I am in root user. When I log under other user konsole can display in color.

thanks

ondoho 04-09-2017 03:43 AM

https://duckduckgo.com/?q=kde+konsole+terminal+colors

Shadow_7 04-09-2017 04:40 PM

A lot of that is aliases. Running a command without an alias $(\ls) probably has no color by default, which is likely roots defaults.

$ ls
$ \ls

The prefixed (\) one runs without an alias.

$ alias
$ help alias
$ help unalias

frankbell 04-09-2017 09:24 PM

To build on what Shadow 7 said, what distro/version are you running? That may have a bearing.

For example, some distros alias certain commands by default. I've seen vi aliased to vim and rm aliased to rm -i (which is really and truly annoying when you are trying to rm -r [some directory]), for example.

ondoho 04-09-2017 10:40 PM

i think i slghtly misread the OP, sorry.

the difference could also come from different files being parsed during shell initialisation.
assuming bash, have a look at /etc/bash.bashrc /root/.bashrc $HOME/.bashrc
this has nothing to do with konsole.

intmail01 04-10-2017 03:34 AM

Quote:

Originally Posted by Shadow_7 (Post 5694883)
A lot of that is aliases. Running a command without an alias $(\ls) probably has no color by default, which is likely roots defaults.

$ ls
$ \ls

The prefixed (\) one runs without an alias.

$ alias
$ help alias
$ help unalias


Slackware 14.2

ondoho 04-10-2017 10:30 AM

Quote:

Originally Posted by intmail01 (Post 5695023)
Slackware 14.2

of the about 10 questions asked so far, this is the only one you choose to answer? wow.


All times are GMT -5. The time now is 11:57 AM.