Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?

share|improve this question

migrated from Apr 6 '11 at 1:38

This question came from our site for professional and enthusiast programmers.

up vote 7 down vote accepted

if you are using PUTTY to remotely access the shell, then:
- on the left panel, click Colors
- uncheck the three boxes on the right panel (they are checked by default)

share|improve this answer
I'll have to switch to a terminal program that lets me do this. Thanks. – Poe Apr 6 '11 at 1:57
Geekosaur's answer is better for you, really. – Slomojo Apr 6 '11 at 3:21
@slomojo his answer didn't work with my terminal client – Poe Apr 6 '11 at 9:46
Oh, interesting, which client is it? – Slomojo Apr 6 '11 at 10:37
I'm using iTerm (OS X) and still getting color if I export TERM=vt220, and in 'ls' even after unsetting LS_COLORS – Poe Apr 7 '11 at 3:42

unset LS_COLORS; export TERM=xterm should do it, or at least get you most of the way there. You may need to change that to say TERM=vt220 for some overly "smart" programs.

share|improve this answer
Definitely recommend VT220 over XTERM. – Slomojo Apr 6 '11 at 3:20
"xterm" is a color terminal, to disable colors you need TERM=xterm-mono – Idelic Apr 11 '11 at 21:37
xterm -cm

This will start an xterm with no colors.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .