LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   colors in terminal (https://www.linuxquestions.org/questions/linux-general-1/colors-in-terminal-515636/)

cad 01-02-2007 11:30 AM

colors in terminal
 
My college has useraccounts through samba
Whenever i logon normally to my account in our linux lab I dont get to see colourful filenames in termianl.
Now when I logon to some other server(which also has the same account for me) then i get to see color in filenames but if at this point i change my shell ksh->bash or bash->
bash->bash or ksh->ksh again colour disappears but appears again if i exit that changed shell.
Though, I can see the colours while working in Virtual Consoles.
and it also appears when i ssh to 127.0.0.1
I tried to solve the problem by checking the env file and found out that the env file is automatically changed

the txt after LS_COLORS is automatically appended into the file

LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:

Sometimes even when i log on to the remote server colours do not appear though the env file gets chaned automatically as always.

i am really confused.
Someone please help.
please tell me how does this happen

How do I get filenames and all displayed in color in terminal
Please help

Please also tell the path of env file .

ajosephantony 01-03-2007 12:27 AM

Hi,

Colours are basically set in /etc/bashrc and/or .bashrc file in the user's home directory.

Cheers
Joe


All times are GMT -5. The time now is 04:15 PM.