문제
sudo find /etc | xargs grep -i fedora > searchFedora
제공 :
/etc/netplug.d/netplug: # At least on Fedora Core 1
...
그러나 Fedora 버전을 참조하십시오 /etc/netplug.d/netplug
파일. 심각합니까?
해결책
cat /etc/issue
또는 cat /etc/fedora-release
@Bruce ainel이 제안한대로
다른 팁
당신은 또한 시도 할 수 있습니다 /etc/redhat-release
또는 /etc/fedora-release
:
cat /etc/fedora-release
Fedora release 7 (Moonshine)
제안 된 표준 파일은 다음과 같습니다 /etc/os-release
. 보다 http://www.freedesktop.org/software/systemd/man/os-release.html
다음과 같은 것을 실행할 수 있습니다.
$ source /etc/os-release
$ echo $ID
fedora
$ echo $VERSION_ID
17
$ echo $VERSION
17 (Beefy Miracle)
당신은 시도 할 수 있습니다
lsb_release -a
적어도 데비안과 우분투에서 작동합니다 (LSB이기 때문에 적어도 다른 주류 배포판에 있어야합니다). http://rpmfind.net/linux/rpm/sourceforge/ls/lsb/lsb_release-1.0-1.i386.html 꽤 오랜 시간이 걸렸다 고 제안합니다.
필요한 것을 줄 수있는 가장 간단한 명령이지만 다른 좋은 정보도 다음과 같습니다.
hostnamectl
cat /etc/*release
거의 모든 주요 분포에 대해 보편적입니다.
[Belmiro@HP-550 ~]$ uname -a
Linux HP-550 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux
[Belmiro@HP-550 ~]$ lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:deskt
op-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch
Distributor ID: Fedora
Description: Fedora release 11 (Leonidas)
Release: 11
Codename: Leonidas
[Belmiro@HP-550 ~]$
는 어때 uname -a
?
Fedora 25 (워크 스테이션) 설치시 모든 배포 ID 정보 가이 파일에서 발견되었습니다.
/usr/lib/os.release.d/os-release-workstation
여기에 포함되어 있습니다.
- 이름 = 페도라
- 버전 = "25 (워크 스테이션 에디션)"
- id = 페도라
- version_id = 25
- Pretty_name = "Fedora 25 (Workstation Edition)"
- <...>
- Variant = "Workstation Edition"
- variant_id = 워크 스테이션
이 명령은 Artik 10에서 작동했습니다.
- 고양이 등 /페도라 릴리스
- 고양이 /등 /문제
- hostnamectl
그리고이 사람들은 그렇지 않았습니다.
- LSB_RELEASE -A
- Uname -a
Uname -a는 내 FC11과 함께 작동합니다
제휴하지 않습니다 StackOverflow