Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Searching really distro-independent cmd to show WinManager and version

    I am switching oftentimes between Linux installations and evaluate new Linux distros and versions.

    So I am interested in a really, really global and distribution independent cmd/tool to find out which Windows Desktop Manager (Unity, GNOME, KDE,Xfce) and version is currently running.

    Some environment variables are set only on certain Desktop Managers on other not.
    Some processes run only on certain distributions - on others not.

    I don't want to fiddle around with dozends of different commands.

    I need a global cmd such as:


    which is available on really all (at least debian (Mint Ubuntu) and redhat (Fedore, CentOS) based) distributions.

    Is there such a cmd?
    A one time-to-install tool would be acceptable.


  2. #2
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris

    Perhaps something like this:
    $ version inxi
    inxi 1.9.12-00 (July 2 2013)
    $ inxi -S -c 0
    System:    Host: leap Kernel: 2.6.26-2-amd64 x86_64 (64 bit) 
    Desktop: Gnome 2.22.3 Distro: Debian 5.0.8 (lenny workstation)
    $ inxi -S -c 0
    System:    Host: vm-fedora Kernel: 3.11.4-201.fc19.x86_64 x86_64 (64 bit) 
               Desktop: KDE 4.11.2 Distro: Fedora release 19 (Schrödinger’s Cat)
    $ inxi -S -c 0
     System:    Host: vm-slackware Kernel: 3.2.29 x86_64 (64
     bit) Desktop: KDE 4.8.5 Distro: Slackware 14.0
     $ inxi -S -c 0
     Resuming in non X mode: glxinfo not found. For package install
     advice run: inxi --recommends
     System:    Host: vm-ubuntu Kernel: 3.8.0-32-generic x86_64 (64
     bit) Desktop: Xfce 4.10.2 Distro: Ubuntu 12.04 precise
    inxi - A newer, better system information script for irc, administration, and system troubleshooters. - Google Project Hosting and others that might come up from a Google search.

    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts