11 Useful X-window (GUI Based) Linux Commands – Part I

We, the Tecmint Team, are dedicated to creating high-quality articles about Linux and open-source topics. Since we started, we’ve put in a lot of effort to provide our readers with useful and interesting information. We’ve also created many shell programs, from fun commands to helpful tools.

Here are some of our most notable examples:

In this article, we will provide a few X-based commands that are generally available in most standard distributions today. If you find that any of the X-based commands listed below are not installed on your system, you can always use apt or yum to install the required packages.

1. xeyes Command

The xeyes command displays a graphical pair of eyes that follow your mouse movements. While it may seem more amusing than useful, its novelty makes it enjoyable to use.

Simply run xeyes in the terminal and watch the eyes track your mouse pointer.

xeyes
Xeyes - Show Graphical Pair of Eyes
Xeyes – Show a Graphical Pair of Eyes

2. xfd Command

The xfd command displays all the characters in a specified X font. It creates a window showing the name of the font being displayed.

xfd -fn fixed
Using xfd to Display Fonts
Using xfd to Display Fonts

3. xload Command

The xload command outputs a graphical representation of the system load average for the X server, which is an excellent tool for monitoring real-time average system load.

xload -highlight blue
xload - Visualize System Load on Linux
xload – Visualize System Load on Linux

4. xman Command

Most users are familiar with the man command for accessing manual pages. However, many may not know that there is an X version called xman, which provides a graphical interface for man pages.

xman -helpfile cat
Xman: A Graphical Interface for Man Pages
Xman: A Graphical Interface for Man Pages

5. xsm Command

The xsm command stands for “X Session Manager“, which acts as a session manager, grouping applications that refer to a particular state.

xsm
xsm - Managing X Sessions
xsm – Managing X Sessions

6. xvidtune Command

The xvidtune command is a video mode tuner for Xorg, which provides a client interface to the X server’s video mode extension.

xvidtune
xvidtune: A Video Mode Tuner for Xorg
xvidtune: A Video Mode Tuner for Xorg

Note: Incorrect use of this program can cause permanent damage to your monitor and/or video card. If you don’t know what you are doing, avoid making changes and exit immediately.

7. xfontsel Command

The xfontsel application provides a simple way to display the fonts known to your X server.

xfontsel
xfontsel to List Fonts on Your X Server
xfontsel to List Fonts on Your X Server

8. xev Command

The xev command stands for “X events“, which prints the content of X events, helping users understand input events generated by the X server.

xev
xev - Analyze X Events
xev – Analyze X Events

9. xkill Command

The xkill command allows you to kill a client application by clicking on its window, which can be particularly useful for terminating unresponsive applications quickly.

xkill

10. xset Command

The xset command is used to set various user preferences for the X server, that can be used to control keyboard and mouse settings, including screen saver options.

xset q

11. xrandr Command

The xrandr command is a command-line interface to the X11 Resize and Rotate extension, which can be used to set the size, orientation, and reflection of the outputs for a screen.

xrandr
Conclusion

That’s all for now! We plan to post at least one more article (Useful X-based Commands) in this series, and we are actively working on it. Until then, stay tuned and connected to Tecmint.

Don’t forget to share your valuable feedback in our comment section.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

7 Comments

Leave a Reply
  1. Can you please tell me why I get “can’t open display ” in response to any of the X-window commands entered in command line in my debian computer. What is the solution?

    Your tutorials are very good, but I am still a beginner.

    Best wishes, Zach

    Reply
    • @Zach,
      You can’t run X based applications from commandline, you just have Desktop Environment such Gnome, Cinnamon, Mate, etc installed on the system..

      Reply
      • “You can’t run X based applications from commandline”
        But you show each and every X app being started with a terminal command.

        Reply
  2. “eyes” is indeed one of those seemingly silly apps. I use it on my system all the time. I have three screens, and frequently “lose” my mouse. a quick check of “eyes”(located atthe bottom of my middle monitor) is usually all I need to locate it again.

    Reply
    • Dear Thorin,
      It is the beauty of Linux that an useless program for one user is so much useful for another. Keep Connected!
      Kudos

      Reply
  3. It would be even more helpful if the availability of these commands is shown. Very few of them are available on my (Redhat) system by default. Probably need to add packages and/or adjust paths. Also, everyone assumes your system is connected to the internet, but for many secure systems, this is not the case, so yum will not work, at least not simply.

    Reply
    • Dear Pasquale, all of these commands should be available on most of the Linux Distro, using standard repo.

      You can find the package using apt-cache search (Debian Based), yum search (Fedora Based). You may contact the relevant community or ping us, if needed.

      Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.