LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Color Gone in PuTTY (https://www.linuxquestions.org/questions/linux-newbie-8/color-gone-in-putty-586603/)

seattleweb 09-22-2007 02:00 PM

Color Gone in PuTTY
 
I have a small problem: after updating Ubuntu, when I PuTTY into the machine, my colors have disappeared (i.e. red for gzip, green for scripts, blue for directories)... instead now, I have only Black/White.

Does anyone know how to fix this problem? (Google has not been my friend on the issue)

otoomet 09-22-2007 02:14 PM

Do you have colors when using an xterm on console?

I suggest the reason is the following: the colors are not directly related to putty but to the 'ls' command. Try 'ls --color=auto' at putty. If this works, add the lines like
Code:

    alias ll='ls -l --color=auto'
    alias ls='ls --color=auto'

to your .bashrc file

Best,
Ott

seattleweb 09-22-2007 02:47 PM

Quote:

Originally Posted by otoomet (Post 2900375)
Do you have colors when using an xterm on console?

I suggest the reason is the following: the colors are not directly related to putty but to the 'ls' command. Try 'ls --color=auto' at putty. If this works, add the lines like
Code:

    alias ll='ls -l --color=auto'
    alias ls='ls --color=auto'

to your .bashrc file

Best,
Ott

Thank you.. that worked! Unfortunately my gzip files are still white and not red


All times are GMT -5. The time now is 09:27 PM.