Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there any config files for xterm for default settings? For example, on my system, xterm start with black text on white background, and I want it the other way around. I can do it by starting it with:

xterm -bg black -fg white.

I want to set in a config file that if I run it without arguments, it will start with these options.

share|improve this question
up vote 6 down vote accepted

Add these lines to a file named .Xdefaults in your home directory.

xterm*background:   black
xterm*foreground:   white

Then, run xrdb .Xdefaults and launch xterm :)

And here's a full guide to .Xdefaults if you want more:

share|improve this answer
and: read 'man xterm' to find out possible settings for the .Xdefaults file – akira May 4 '10 at 10:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.