{"id":31247,"date":"2018-12-20T19:18:21","date_gmt":"2018-12-21T01:18:21","guid":{"rendered":"https:\/\/gregladen.com\/blog\/?p=31247"},"modified":"2018-12-20T19:18:21","modified_gmt":"2018-12-21T01:18:21","slug":"how-do-i-tell-what-version-of-everything-im-running-linux","status":"publish","type":"post","link":"https:\/\/gregladen.com\/blog\/2018\/12\/20\/how-do-i-tell-what-version-of-everything-im-running-linux\/","title":{"rendered":"How do I tell what version of everything I&#8217;m running (Linux)"},"content":{"rendered":"<p>Linux has a kernel, there is a desktop manager, a desktop environment, a distribution, and a whole bunch of other stuff. All these things and other things have version numbers and similar information associated with them. If you are a casual user, you probably don&#8217;t know the exact version of any or all of these things you are running at any one moment in time. Then, suddenly, you find out that &#8220;Version this-or-that of this thing-or-another is out, have you tried it?&#8221; or &#8220;The whatchamacalit version of the thingimijob is broken, if you have that upgrade or you will all die!!!&#8221; or similar.  So then, you want to know what version you are running.<\/p>\n<p>Here are a few ways to find out that information.<!--more--><\/p>\n<p>In KDE, go to the command line and run the command<\/p>\n<p><code>kinfocenter<\/code><\/p>\n<p>That will pop up a box with all sorts of information about what you are running, and about hardware, and all sorts of other things.  The current version of kinfocenter has the most annoying tool tips on the planet, but otherwise, is useful.<\/p>\n<p>There is a similar thing in Gnome.  Go to the standard toolbar on the top and open up the thingie by that looks like an off on switch or audio level adjuster. That will open a spooky looking box that includes the actual audio volume control, an actual on switch, some other stuff, and a toolbox icon.  Open the toolbox icon, and in there, click on about.  You won&#8217;t get as much info as KDE gives you, but you&#8217;ll have the desktop name, version, your computer name, and some basic hardware information.<\/p>\n<p>A lot of information is stored inside variables and system files on your computer.  There are therefore a large number of different command line ways to access this information. Here are some examples:<\/p>\n<p>I&#8217;m running a current version of KDE, so I get this answer:<\/p>\n<p><code>greg@cj:~$ echo $DESKTOP_SESSION<br \/>\nplasma<\/code><\/p>\n<p>The type of window manager is stored in the name of a file in a system directory, and you can get that like this:<\/p>\n<p><code>greg@cj:~$ ls \/usr\/bin\/*session<br \/>\n\/usr\/bin\/dbus-run-session <\/code><\/p>\n<p>There is a command called &#8220;env&#8221; which invokes a long readout of way more information than you will ever want.  But you can grep it.  For example:<\/p>\n<p><code>greg@cj:~$ env | grep DESKTOP<br \/>\nDESKTOP_SESSION=plasma<br \/>\nXDG_SESSION_DESKTOP=KDE<br \/>\nXDG_CURRENT_DESKTOP=KDE<\/code><\/p>\n<p>This is a command that prints out various system information data about the kernel, the machine, the processor, etc. With no options, or just the -s option, it prints out the kernel name, like this:<\/p>\n<p><code>greg@cj:~$ uname -s<br \/>\nLinux<\/code><\/p>\n<p>But you can get much much more<\/p>\n<p><code>greg@cj:~$ uname -srm<br \/>\nLinux 4.15.0-42-generic x86_64<\/code><\/p>\n<p>To see all the options, run &#8220;man uname&#8221; to see the man page.<\/p>\n<p>The Linux command &#8220;cat&#8221; prints out a file.  There are a few cat tricks you can use.<\/p>\n<p><code>greg@cj:~$ cat \/etc\/os-release<br \/>\nNAME=\"Ubuntu\"<br \/>\nVERSION=\"18.04.1 LTS (Bionic Beaver)\"<br \/>\nID=ubuntu<br \/>\nID_LIKE=debian<br \/>\nPRETTY_NAME=\"Ubuntu 18.04.1 LTS\"<br \/>\nVERSION_ID=\"18.04\"<br \/>\nHOME_URL=\"https:\/\/www.ubuntu.com\/\"<br \/>\nSUPPORT_URL=\"https:\/\/help.ubuntu.com\/\"<br \/>\nBUG_REPORT_URL=\"https:\/\/bugs.launchpad.net\/ubuntu\/\"<br \/>\nPRIVACY_POLICY_URL=\"https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy\"<br \/>\nVERSION_CODENAME=bionic<br \/>\nUBUNTU_CODENAME=bionic<\/p>\n<p>greg@cj:~$ cat \/etc\/issue<br \/>\nUbuntu 18.04.1 LTS \\n \\l<\/p>\n<p><\/code><\/p>\n<p>There is a command to print out distribution specific information, with the handy -a switch to dump it all to the screen.<\/p>\n<p><code><br \/>\ngreg@cj:~$ lsb_release -a<br \/>\nNo LSB modules are available.<br \/>\nDistributor ID: Ubuntu<br \/>\nDescription:    Ubuntu 18.04.1 LTS<br \/>\nRelease:        18.04<br \/>\nCodename:       bionic<\/code><\/p>\n<p>And finally, the command hostnamectl, which allows you to change the hostname (don&#8217;t do this if you don&#8217;t know what it is) or get information about the hose.<\/p>\n<p><code>greg@cj:~$ hostnamectl<br \/>\n   Static hostname: cj<br \/>\n         Icon name: computer-desktop<br \/>\n           Chassis: desktop<br \/>\n        Machine ID: c9c8b3b223c34d14ae7fcabfbf1f2c1c1ba<br \/>\n           Boot ID: 6dba797cc332bbababb58c7373dba9797c<br \/>\n  Operating System: Ubuntu 18.04.1 LTS<br \/>\n            Kernel: Linux 4.15.0-42-generic<br \/>\n      Architecture: x86-64<\/code><\/p>\n<p>So, now you know how to find out a whole bunch of information you almost never really need, but when you do &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux has a kernel, there is a desktop manager, a desktop environment, a distribution, and a whole bunch of other stuff. All these things and other things have version numbers and similar information associated with them. If you are a casual user, you probably don&#8217;t know the exact version of any or all of these &hellip; <a href=\"https:\/\/gregladen.com\/blog\/2018\/12\/20\/how-do-i-tell-what-version-of-everything-im-running-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How do I tell what version of everything I&#8217;m running (Linux)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":31251,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5028],"tags":[4101,5791,5330,67,5790],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/gregladen.com\/blog\/wp-content\/uploads\/2018\/12\/update_for_your_computer_v1.jpg?fit=515%2C193&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p5fhV1-87Z","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31247"}],"collection":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/comments?post=31247"}],"version-history":[{"count":5,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31247\/revisions"}],"predecessor-version":[{"id":31253,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31247\/revisions\/31253"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media\/31251"}],"wp:attachment":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media?parent=31247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/categories?post=31247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/tags?post=31247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}