Inspect X11 config in /etc/X11
In this step, we'll explore the configuration files for the X Window System, often referred to as X11 or just X. X11 is the core component that provides the graphical user interface (GUI) you see and interact with on your Linux desktop. Configuration files for X11 are typically located in the /etc/X11
directory.
We'll use the ls
command to list the contents of this directory. ls
is a fundamental command for listing files and directories.
Open your terminal if it's not already open.
Type the following command into the terminal and press Enter:
ls /etc/X11
This command will list the files and directories within /etc/X11
. The output will show various configuration files and subdirectories related to your graphical environment.
The output will look similar to this (the exact contents may vary slightly):
app-defaults cursors default-display-manager fonts rgb.txt X xinit Xresources Xsession Xsession.d XvMCConfig
You can see directories like xinit
and Xsession.d
, which contain scripts and configurations related to starting and managing X sessions. Files like rgb.txt
contain color definitions.
While we won't be modifying these files in this lab, knowing where the X11 configuration is located is useful for more advanced customization and troubleshooting in the future.
To get a slightly more detailed view, you can use the -l
option with ls
to see file permissions, ownership, size, and modification date:
ls -l /etc/X11
This will provide a long listing format:
total 60
drwxr-xr-x 2 root root 4096 <date> app-defaults
drwxr-xr-x 3 root root 4096 <date> cursors
-rw-r--r-- 1 root root 200 <date> default-display-manager
drwxr-xr-x 3 root root 4096 <date> fonts
-rw-r--r-- 1 root root 18000 <date> rgb.txt
drwxr-xr-x 2 root root 4096 <date> X
drwxr-xr-x 2 root root 4096 <date> xinit
-rw-r--r-- 1 root root 700 <date> Xresources
-rwxr-xr-x 1 root root 3000 <date> Xsession
drwxr-xr-x 2 root root 4096 <date> Xsession.d
-rw-r--r-- 1 root root 200 <date> XvMCConfig
This step introduced you to the location of X11 configuration files. As you become more familiar with Linux, you might explore these files further to customize your desktop experience.
Click Continue to complete this lab.