Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»General Articles»How to Detect the Desktop Environment in Linux Command Line

    How to Detect the Desktop Environment in Linux Command Line

    By RahulMarch 16, 20191 Min Read

    There are multiple options available to identify the running desktop environment on a Linux desktop. Here we discuss two commonly used options. First, execute the following command to check the name of the Desktop Environment.

    Advertisement
    echo $XDG_CURRENT_DESKTOP
    

    In addition, you can also identify the Desktop by checking the currently running processes. Like the following command will show you the processes running for XFCE or KDE or GNOME desktops.

    ps -e | grep -E -i "xfce|kde|gnome"
    

    You will see the results like below. As per the below result, the GNOME desktop is being used on this system.

    find desktop environment

    Desktop linux
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Install PHP 8.2-7.4 on RHEL & CentOS Stream 9

    How to Install MySQL 8.0 on RHEL & CentOS Stream 9

    How to Split Large Archives in Linux using the Command Line

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • What is the /etc/mtab File in Linux
    • The “Hello World” Challenge: Printing in 20 Different Programming Languages
    • How to Install PHP 8.2-7.4 on RHEL & CentOS Stream 9
    • How to Install MySQL 8.0 on RHEL & CentOS Stream 9
    • How to Split Large Archives in Linux using the Command Line
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.