หลากวิธีดูเวอร์ชันของ Ubuntu

RSS Feed

เชื่อว่าหลายคนเคยมีปัญหาเวลาไปเล่น Ubuntu ที่เครื่องคนอื่นแล้วไม่รู้ว่าใช้เวอร์ชันอะไรอยู่ ซึ่งมีหลายวิธีที่ดูได้ครับ

วิธีแรกคือไปที่ System > About Ubuntu แล้วดูที่สองบรรทัดแรกจะมีรายละเอียดเวอร์ชันที่เราใช้อยู่

หรือจะใช้คำสั่งบน Terminal ก็ได้ เช่น คำสั่ง

lsb_release -a

ก็จะได้ผลลัพธ์ว่า

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.10
Release:        9.10
Codename:       karmic

หรือคำสั่ง

cat /etc/issue

ก็จะได้ผลลัพธ์

Ubuntu 9.10 \n \l

หรือถ้าอย่างดูเวอร์ชันเคอร์เนลอย่างละเอียดเลย ก็ใช้คำสั่ง

uname -a

ก็จะขึ้นผลลัพธ์มาว่า

Linux WingUbuntu 2.6.31-17-generic-pae #54-Ubuntu SMP Thu Dec 10 17:23:29 UTC 2009 i686 GNU/Linux

Linux ชื่อของเคอร์เนล
WingUbuntu คือชื่อเครื่องของเรา
2.6.31-17-generic-pae บอกเคอร์เนลที่เราใช้อยู่ ในกรณีนี้คือ 2.6.31-17 มี PAE ที่ทำให้มองเห็นแรมได้มากกว่า 3GB ด้วย
#54-Ubuntu ชื่อ Machine hardware name
SMP เป็นหน่วยประมวลผลแบบ Symmetric multiprocessing
Thu Dec 10 17:23:29 UTC 2009 วันเวลาของเครื่องเราในปัจจุบัน
i686 สถาปัตยกรรมของ CPU
GNU/Linux คงไม่ต้องบอกถึงตัวนี้

แอบทำยอดด้วยการปั่นทิปเล็กๆ สักอย่างนึงแล้วกันครับ :P

ขอบคุณครับ ผมลองใช้ lsb_release และ cat /etc/issue กับ Fedora ใช้ได้เหมือนกันด้วยครับ

ผมลองกับ Debian ไม่มีคำสั่ง lsb_release แฮะ

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <img> <li> <ol> <p> <span> <strong> <ul>
    Allowed Style properties: color, font, font-family, font-size, font-style, font-weight, text-align
  • You can enable syntax highlighting of source code with the following tags: <blockquote>, <code>, <pre>, <apache>, <bash>, <c>, <cpp>, <css>, <drupal5>, <drupal6>, <html>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <smarty>. The supported tag styles are: <foo>, [foo].
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.