nerdexam
CompTIA

LX0-104 · Question #474

One of your users has installed a commercial publishing program that works under X on a variety of UNIX and Linux platforms. The user made a series of configuration changes regarding the initial windo

The correct answer is A. ~/.Xdefaults. User-specific configuration settings for X applications, such as window geometry, colors, and fonts, are commonly stored in a user's home directory within a file named .Xdefaults or .Xresources. This allows users to customize their X environment without affecting other users or s

User Interfaces and Desktops

Question

One of your users has installed a commercial publishing program that works under X on a variety of UNIX and Linux platforms. The user made a series of configuration changes regarding the initial window size, location and color. Now he is having difficulties undoing these changes and is asking for your help. In which file would you think you would most likely find the configuration settings you are seeking to change?

Options

  • A~/.Xdefaults
  • B~/.xinitrc
  • C~/.xconfig
  • D/etc/X11/XF86Config

How the community answered

(29 responses)
  • A
    79% (23)
  • B
    10% (3)
  • C
    3% (1)
  • D
    7% (2)

Why each option

User-specific configuration settings for X applications, such as window geometry, colors, and fonts, are commonly stored in a user's home directory within a file named .Xdefaults or .Xresources. This allows users to customize their X environment without affecting other users or system-wide settings.

A~/.XdefaultsCorrect

The ~/.Xdefaults (or ~/.Xresources) file is a common location for X applications to store user-specific resource settings, including preferences for window size, position, and colors. These settings typically override system-wide defaults and are loaded when an X application starts.

B~/.xinitrc

~/.xinitrc is a shell script executed by xinit or startx when starting an X session; it typically launches window managers and other initial X applications, but it does not store application-specific graphical settings.

C~/.xconfig

~/.xconfig is not a standard or widely recognized file for storing X application configuration settings in Unix-like systems.

D/etc/X11/XF86Config

/etc/X11/XF86Config (or similar files like xorg.conf) is the system-wide configuration file for the X server itself, controlling hardware settings like monitor resolutions, keyboard layouts, and graphics card drivers, not individual application settings.

Concept tested: X Window System user configuration

Source: https://www.x.org/releases/X11R7.6/doc/libX11/libX11.html

Topics

#X Window System#X resources#~/.Xdefaults#user configuration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice