Just how to locate details concerning the system/machine in Unix?
I have actually constantly located it hard to locate details concerning the system itself in Unix, whether it be
Which OS I am making use of (variation number and also all, to contrast it with the most up to date readily available builds)?
Which Desktop Environment am I making use of? If I am making use of KDE, a lot of the programs begin with a K and also I can claim I am making use of KDE, yet there need to be some means to quiz this, claim from a manuscript.
Which kernel variation am I making use of? (As an example, I am making use of Fedora, and also I need to know what Linux kernel variation I am making use of)
Primarily, what I miss out on is a solitary point/utility that can get all this details for me. A lot of the moments the remedies to the above would certainly themselves be OS details. After that, you are stuck.
gnome-system-monitor (plan coincides name in Debian, Ubuntu, and also Fedora), and also click the System tab:
The desktop computer point is a little tough due to the fact that you can have numerous ones mounted, and also can run one plan coming from one desktop computer on a various desktop computer. Additionally, running
printenv DESKTOP_SESSION on my Debian system simply outputs
default (yet it functions well on Ubuntu and also Fedora).
As @milk mentioned, you can make use of
uname -a which will certainly inform you details on all the UNIXes I have accessibility to. As an example, on Linux :
Linux localhost 188.8.131.52-147.2.4.fc13.x86_64 #1 SMP Fri Jul 23 17:14:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
On FreeBSD :
FreeBSD localhost 6.3-RELEASE-p3-jc1 FreeBSD 6.3-RELEASE-p3-jc1 #2: Thu Aug 7 14:36:29 PDT 2008 [email protected]ohncompanies.com:/usr/obj/usr/src/sys/jail7 i386
On OpenSolaris :
SunOS localhost 5.11 snv_134 i86pc i386 i86pc
Regarding the desktop environment inquiry goes, you need to have the ability to
echo $DESKTOP_SESSION in KDE or GNOME and also come back the appropriate solution.
If you intend to figure out what distro you're running, a cheater's faster way is to
cat /etc/*-version /etc/*-release.
In enhancement to
uname -a, which offers you the kernel variation, you can attempt :
lsb_release -idrc # distro, version, codename, long release name
The Majority Of Desktop Environments like GNOME or KDE have an "around" or "details" food selection alternative that will certainly inform you what you make use of presently, so no commandline required there actually.
Not entirely fail-safe, yet midway there :
xwininfo -root -children|grep kwin xwininfo -root -children|grep gnome-panel
(I can not aid it if you seem like making use of gnome - panel under kwin, though ; - ) Additionally, I locate this really valuable under Linux :
Building on every people blog post over, possibly run a straightforward manuscript
#!/bin/bash lsb_release -idrc ; printenv DESKTOP_SESSION ; uname -a
running that offers me
Distributor ID: LinuxMint Description: Linux Mint 9 Isadora Release: 9 Codename: isadora gnome Linux judas327 2.6.32-24-generic-pae #39-Ubuntu SMP Wed Jul 28 07:39:26 UTC 2010 i686 GNU/Linux