How to check the desktop environment of linux from the command line??
There are many methods available to check the desktop environment in Linux. Here we will show you commonly used two methods.
Run the following command from the terminal.
# echo $XDG_CURRENT_DESKTOP
READ: How to Add and Delete Users on CentOS 7
Alternatively, you can also use the following command.
# env | grep XDG_CURRENT_DESKTOP
Conclusion: These are the two methods shown to check the Desktop Environment in Linux.