Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
Last active June 23, 2020 12:46
Show Gist options
  • Save ponsuke0531/9bffe91dbdc8c4b3104dde50f2281370 to your computer and use it in GitHub Desktop.
Save ponsuke0531/9bffe91dbdc8c4b3104dde50f2281370 to your computer and use it in GitHub Desktop.
LinuxのOSを確認する方法 ref: https://qiita.com/ponsuke0531/items/48ec9f001d0b45d077fc
$ cat /etc/issue
# CentOS, RedHat系
$ cat /etc/redhat-release
# AmazonLinux
$ cat /etc/system-release
# Ubuntuとかいろいろ
$ cat /etc/os-release
$ uname -m
x86_64
$ arch
x86_64
$ uname -m
x86_64
$ arch
x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment