He founded PCWorld's "World Beyond Windows" column, which covered the latest developments in open-source operating systems like Linux and Chrome OS. He also wrote the USA's most-saved article of 2021, according to Pocket.Ĭhris was a PCWorld columnist for two years. ![]() Beyond the web, his work has appeared in the print edition of The New York Times (September 9, 2019) and in PCWorld's print magazines, specifically in the August 2013 and July 2013 editions, where his story was on the cover. With over a decade of writing experience in the field of technology, Chris has written for a variety of publications including The New York Times, Reader's Digest, IDG's PCWorld, Digital Trends, and MakeUseOf. Chris has personally written over 2,000 articles that have been read more than one billion times-and that's just here at How-To Geek. From the output, you can surmise that I am using a VM on DigitalOcean.Chris Hoffman is the former Editor-in-Chief of How-To Geek. You get additional details such as whether it's a physical or virtual system, kernel version, and CPU architecture. You can see the Ubuntu version detail in the output but no codename: Static hostname: learnubuntu ![]() You can use the hostnamectl command: hostnamectl There are other commands that provide you with this information. While lsb_release -a is my preferred way to get the Ubuntu version details it's not the only way. This is more appropriate to be used in the scripts, right? Other ways to check Ubuntu version You can see the outputs in the screenshot below: Similarly, to get just the Ubuntu codename, combine the s and c (codename) options: lsb_release -cs To get just the Ubuntu version number, combine the s (short) and d (description) options: lsb_release -ds There is a shorter version to give you the exact necessary detail. The good thing here is that you don't need to do any ninja stuff to format the output with grep and cut command. It's not convenient to use this information in a script or command. The command lsb_release -a gives you 5 lines of output in two columns. Get only the Ubuntu version or release name ![]() You can see how long your current Ubuntu system will be supported with the following command: ubuntu-security-statusĪs you can see in the screenshot above, my Ubuntu system is supported till April 2027 (4/2027). The LTS release is supported for five years from its release. The LTS in the description means that this is a long-term support (LTS) release. Now that you know how to show Ubuntu version in CLI, let me share a handy tip. This codename is also useful, especially when you are adding an external repository that needs the codename of the Ubuntu release. As you can see in the output above, I am using Ubuntu version 22.04 which is codenamed 'jammy'. You can see the Ubuntu version in the Description or Release line. This gives all the necessary distributions specific information. The easiest way to check the Ubuntu version is to use the following command in the terminal: lsb_release -a Whatever may be the reason, it's always good to know the basic information about the system you are using. ![]() Or, if you simply seeking help in Linux forums and you need to provide the information on your Ubuntu version. If you are adding an external repository for additional packages or if you want to know whether a certain program version is available for your Ubuntu install or not. Knowing your Ubuntu version is helpful in several situations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |