Operating System - Linux
1831343 Members
2979 Online
110024 Solutions
New Discussion

Why will change the colour

 
SOLVED
Go to solution
ust3
Regular Advisor

Why will change the colour

We use the software "Netterm" to connect the Linux server , but I found that sometimes when use specific command like ls , ll etc, the characters will change other colour , just like login on the console , can advise if I don't want the colour be chanaged , what can i do ? thx
4 REPLIES 4
Rob Leadbeater
Honored Contributor

Re: Why will change the colour

Hi,

You could try setting the terminal type to something that doesn't support colour.

The syntax will probably depend on what shell you're using, but could be something like:

# TERM=vt100;export TERM

You might also need to configure your terminal emulation program to identify its self as a different type of terminal.

Hope this helps,

Regards,

Rob
Ivan Ferreira
Honored Contributor

Re: Why will change the colour

You can also check the alias for these commands:

alias

You will see some "color" that you could remove from the alias.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
James R. Ferguson
Acclaimed Contributor
Solution

Re: Why will change the colour

Hi:

You can turn off the colors for the 'ls' command by adding '--color=none':

# ls -l --color=none

If you wish to add the option permanently to your sessions, add an alias to your '.bashrc' like:

alias ls='ls --color=none'

...then if/when you want colors, at the command line do:

# ls -l --color=yes

The manpages for 'ls' offer more information as always!

PLEASE also read this. You have a variety of queries that remain un-evaluated. Scoring answers adds value to this community at large:

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

You can find your recent questions in your profile:

http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1498473&forumId=1

Regards!

...JRF...
loco_vikide
Frequent Advisor

Re: Why will change the colour

I use putty and have this in my personal profile to turn off color:
export TERM=tty