LinuxのOS/ディストリビューションを確認するコマンド

このエントリーをはてなブックマークに追加
cat /etc/issue
cat /etc/ディストリビューション-release

使用しているディストリビューションを調べるコマンドというのは、実は存在しません。
ただし、/etc/以下に、ディストリビューションのバージョンを記述したファイルが必ずありますので、catで参照します。

cat /etc/issue で調べる

まずはこちらのファイルを見てみます。

RedHat、CentOSの場合

$ cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m

Fedoraの場合

$ cat /etc/issue
Fedora release 8 (Werewolf)
Kernel \r on an \m

Debianの場合

$ cat /etc/issue
Debian GNU/Linux squeeze/sid \n \l

cat /etc/ディストリビューション-release で調べる

もしissueがなかったり、書かれていなかったりした場合は、releaseファイルで調べてみましょう。

RedHat、CentOSの場合

$ cat /etc/redhat-release
CentOS release 5.7 (Final)

Fedoraの場合

$ cat /etc/fedora-release
Fedora release 8 (Werewolf)

Debianの場合

$ cat /etc/debian_version
4.0

(まれに /etc/debian_release の場合もあります。)

Turbolinuxの場合

$ cat /etc/turbolinux-release
Turbolinux Server 6.5 (Jupiter)

SuSE Linuxの場合

$ cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION=10
PATCHLEVEL=1

Ubuntuの場合

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION=”Ubuntu 8.04.1″

Ubuntuの場合は、ubuntu-releaseではないので注意が必要です。

その他の場合

その他の各種ディストリビューションでも、「/etc/ディストリビューション名-release」を参照するとわかります。

  • Gentoo Linux: /etc/gentoo-release
  • Mandrake: /etc/mandrake-release
  • Mandriva Linux: /etc/mandriva-release
  • Novell Linux Desktop: /etc/nld-release
  • Solaris SPARC: /etc/release
  • Sun JDS: /etc/sun-release

LinuxのOS/ディストリビューションを確認するコマンド」への107件のフィードバック

  1. this link

    I just want to mention I am new to blogs and certainly loved your blog site. Most likely I’m planning to bookmark your website . You actually come with exceptional well written articles. Thanks a bunch for revealing your website page.

    返信
  2. John Deere Technical Manuals

    There are some fascinating points over time in this article but I do not know if them all center to heart. There may be some validity but I am going to take hold opinion until I take a look at it further. Excellent post , thanks therefore we want a lot more! Put into FeedBurner in addition

    返信
  3. Leonel Rudzik

    We stumbled over here different page and thought I may as well check things out. I like what I see so i am just following you. Look forward to checking out your web page yet again.

    返信
  4. Jong Lujano

    This will be the correct blog for really wants to be familiar with this topic. You realize a great deal its practically difficult to argue together with you (not too I just would want…HaHa). You actually put a fresh spin on the topic thats been discussing for some time. Wonderful stuff, just fantastic!

    返信
  5. Anissa

    My friend as well as I have been reviewing individual blogs and also online journaling. She really feels that personal sensations and such ought to not shared in such open online forums. I see no problem with it. Share your thoughts:. 1. Do you blog site or journal?. 2. Do you favor in person expression of feelings over written interaction?.

    返信
  6. Ethel

    I would actually love to make a blog yet. I’m unsure what kind of blog sites obtain one of the most traffic? What sort of blog sites do you surf? I mainly browse picture blogs and also fashion blogs. Just getting a survey here many thanks!.

    返信
  7. Malcolm Omdahl

    I blog quite often and I seriously appreciate your content. This great article has really peaked my interest. I will book mark your website and keep checking for new information about once per week. I opted in for your RSS feed as well.

    返信
  8. Love Irrigation

    Hi there! I could have sworn I’ve been to your blog before but after looking at some of the articles I realized it’s new to me. Anyways, I’m definitely happy I discovered it and I’ll be book-marking it and checking back frequently!

    返信
  9. Odelia Olivia

    Good morning there, just started to be conscious of your webpage through The Big G, and have found that it is really educational. I’ll be grateful for should you decide continue these.

    返信
  10. Mack Bains

    This is proper opportunity to create some desires for the long-term. I have scan this post and if I can, I desire to propose you some significant assistance.

    返信
  11. Blake Mccadden

    An outstanding share! I’ve just forwarded this onto a co-worker who was conducting a little homework on this. And he actually ordered me breakfast simply because I discovered it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanks for spending time to discuss this subject here on your internet site.

    返信
  12. Tractor Workshop Manuals

    Fantastic piece of content! Take into consideration was pleased with the actual checking. I’m hoping you just read a bit more of you. I know you’ve gotten really good comprehension coupled with plans. Quite possibly very highly delighted utilizing this facts.

    返信
  13. Nieves Stebe

    It is ideal day to put together some preparations for the longer term. I have go through this posting and if I would, I want to suggest to you you number of fascinating suggestions.

    返信
  14. Victorina Oldani

    Good morning there, just became mindful of your blog through Bing and yahoo, and have found that it is genuinely useful. I’ll take pleasure in in the event you maintain this post.

    返信
  15. website link

    I simply want to tell you that I am newbie to weblog and absolutely enjoyed your blog site. More than likely I’m want to bookmark your website . You definitely have incredible articles and reviews. With thanks for sharing with us your website.

    返信
  16. click to investigate

    I simply want to mention I am beginner to blogs and certainly savored you’re web page. Probably I’m likely to bookmark your blog post . You amazingly have great writings. Thanks a bunch for sharing your web site.

    返信
  17. viagra

    You’ve made some good points there. I checked on the web for additional information about the issue and found most individuals will go along with your views on this web site.

    返信
  18. Fastandy

    That is a great tip especially to those new to the blogosphere. Brief but very precise information… Thank you for sharing this one. A must read post.

    返信
  19. Love Irrigation

    I’m impressed, I have to admit. Seldom do I come across a blog that’s both equally educative and entertaining, and without a doubt, you have hit the nail on the head. The issue is something which not enough men and women are speaking intelligently about. I’m very happy that I stumbled across this during my hunt for something regarding this.

    返信
  20. Willie Laprade

    Hullo there, just turned receptive to your article through Bing and yahoo, and discovered that it is very useful. I will appreciate in the event you keep up this informative article.

    返信
  21. Cole Niebyl

    It is proper opportunity to prepare some schemes for the long run. I have looked over this posting and if I can, I wish to recommend you handful of appealing advice.

    返信
  22. We List Products

    You’ve made some good points there. I checked on the internet for additional information about the issue and found most individuals will go along with your views on this site.

    返信
  23. Lauren Muff

    You’re so awesome! I do not think I’ve truly read a single thing like that before. So wonderful to find someone with a few unique thoughts on this subject. Really.. thank you for starting this up. This website is one thing that’s needed on the internet, someone with some originality.

    返信
  24. Lyman Rittichier

    Greetings here, just started to be alert to your website through Search engine, and have found that it’s truly beneficial. I will truly appreciate should you decide continue on these.

    返信
  25. Aconda

    Hi! I just want to offer you a big thumbs up for the excellent info you’ve got here on this post. I’ll be returning to your blog for more soon.

    返信
  26. shop wise

    Your style is unique compared to other folks I have read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I will just book mark this blog.

    返信
  27. Correduria Publica en Cancun

    After exploring a handful of the blog articles on your site, I honestly appreciate your technique of blogging. I bookmarked it to my bookmark site list and will be checking back in the near future. Please visit my web site as well and let me know your opinion.

    返信
  28. Kratom Sulawesi

    After I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve four emails with the exact same comment. Is there an easy method you can remove me from that service? Kudos.

    返信
  29. cbd oil

    Aw, this was a really nice post. Taking the time and actual effort to make a superb article… but what can I say… I hesitate a lot and never seem to get anything done.

    返信
  30. international driver licenses

    Oh my goodness! Incredible article dude! Thanks, However I am experiencing problems with your RSS. I don’t understand why I cannot join it. Is there anybody else having similar RSS issues? Anybody who knows the answer can you kindly respond? Thanks.

    返信
  31. CBD Oil UK

    After I initially commented I appear to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the exact same comment. Is there a means you are able to remove me from that service? Thanks a lot.

    返信
  32. Weight Loss

    Oh my goodness! Incredible article dude! Thank you so much, However I am having troubles with your RSS. I don’t know the reason why I cannot join it. Is there anybody getting identical RSS issues? Anybody who knows the answer will you kindly respond? Thanx!!

    返信
  33. Weed Wax

    although web sites we backlink to beneath are considerably not related to ours, we feel they may be basically worth a go by, so possess a look

    返信
  34. гдз по химия класс

    Appreciating the time and energy you put into your website and detailed information you offer. It’s good to come across a blog every once in a while that isn’t the same out of date rehashed material. Excellent read! I’ve saved your site and I’m adding your RSS feeds to my Google account.| а

    返信
  35. схема жучков на транзисторах

    What i do not realize is actually how you’re no longer actually much more well-preferred than you might be now. You are very intelligent. You know therefore considerably in terms of this subject, made me individually believe it from a lot of numerous angles. Its like men and women are not interested unless it is one thing to do with Woman gaga! Your personal stuffs great. Always handle it up!| а

    返信
  36. Paypal Travel

    Aw, this was an exceptionally nice post. Finding the time and actual effort to make a really good article… but what can I say… I procrastinate a lot and never seem to get anything done.

    返信
  37. John Deere Technical Manuals

    Thanks so much for this great article; this is the kind of thing that keeps me going through the day. Ive been looking around for your article after I heard about them from a friend and was thrilled when I was able to find it after searching for some time. Being a avid blogger, Im happy to see others taking initiative and contributing to the community. I just wanted to comment to show my appreciation for your post as its very encouraging, and many writers do not get the credit they deserve. I am sure Ill be back and will send some of my friends.

    返信
  38. sb http debugger pro ver. 4.3.2 download

    I’ve been browsing on-line greater than three hours lately, yet I never discovered any fascinating article like yours. It’s pretty price sufficient for me. In my view, if all webmasters and bloggers made good content as you probably did, the web will likely be much more useful than ever before.| а

    返信
  39. отчет агентского договора

    I have been surfing on-line greater than 3 hours nowadays, but I by no means discovered any interesting article like yours. It’s beautiful value enough for me. In my view, if all website owners and bloggers made good content material as you probably did, the web will likely be a lot more helpful than ever before.| а

    返信
  40. app for pc

    Wonderful story, reckoned we could combine a few unrelated data, nevertheless seriously really worth taking a appear, whoa did one particular find out about Mid East has got extra problerms as well

    返信
  41. решебник к тетради по математике 4 класс захарова

    Howdy! I know this is sort of off-topic but I needed to ask. Does building a well-established website like yours take a massive amount work? I am brand new to operating a blog however I do write in my journal on a daily basis. I’d like to start a blog so I can share my personal experience and feelings online. Please let me know if you have any kind of ideas or tips for brand new aspiring blog owners. Appreciate it!| а

    返信
  42. Qisume

    That is a very good tip particularly to those new to the blogosphere. Short but very precise info… Many thanks for sharing this one. A must read post!

    返信
  43. Ebony Fuller

    Hi, I believe your site could possibly be having internet browser compatibility issues. When I look at your site in Safari, it looks fine however when opening in I.E., it has some overlapping issues. I just wanted to give you a quick heads up! Apart from that, wonderful website.

    返信
  44. tin tuc tong hop

    I’m amazed, I must say. Rarely do I come across a blog that’s both equally educative and entertaining, and without a doubt, you have hit the nail on the head. The issue is something not enough folks are speaking intelligently about. I’m very happy that I came across this during my hunt for something concerning this.

    返信
  45. образец новой аптечки

    Woah! I’m really digging the template/theme of this blog. It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between superb usability and visual appearance. I must say you have done a great job with this. Also, the blog loads super quick for me on Safari. Superb Blog!| а

    返信
  46. webehigh

    although web sites we backlink to beneath are considerably not connected to ours, we really feel they’re actually really worth a go by, so possess a look

    返信

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>