---
url: 'https://www.redhat.com/topics/linux/what-is-linux'
title: '什么是 Linux？'
date: '2024-11-20T22:53:14+00:00'
updated: '2026-03-05T10:40:52+00:00'
type: website
summary: 'Linux 是一个开源操作系统，由内核（操作系统的基本组件）以及与之捆绑的工具、应用和服务组成。'
tags:
  - Article
  - Linux
  - 'Open source'
image: 'https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-rh-og-image.png'
published: true
---
  

  

1. [主题](/zh-cn/topics "主题")
2. [Linux](/zh-cn/topics/linux "Linux")
3. [什么是 Linux？](# "什么是 Linux？")

 

 

# 什么是 Linux？





 Published  2023 年 1 月 3 日•*5* 分钟阅读

已复制复制失败复制 URL





 

 

 

   

## 快速跳转

什么是 Linux？什么是操作系统？Linux 的工作原理GUI 与 CLI 对比Linux 包含哪几部分？Linux 与开源Linux 的优势为什么选择红帽？

 

 

## 什么是 Linux？



Linux® 是 Linus Torvalds 于 1991 年创建的[开源](/zh-cn/topics/open-source/what-is-open-source-software)操作系统（OS）。如今，它拥有庞大的用户群，世界上[最强大的 500 台超级计算机](https://top500.org/statistics/details/osfam/1/)都在使用它。它因广泛用途和安全功能等原因而受到用户的青睐。Linux 内核由全球开源爱好者社区维护，拥有数百个独特的[发行版](/zh-cn/topics/linux/whats-the-best-linux-distro-for-you)。







 

## 什么是操作系统？



操作系统是指直接管理系统硬件和资源（例如 CPU、内存和存储）的软件。操作系统位于应用与硬件之间，负责在所有软件与执行工作的物理资源之间建立连接。

人类可以通过多种方式与计算机进行交互。大多数人与硬件的主要交互是通过操作系统进行的，操作系统可以帮助他们访问计算机的核心功能。有很多操作系统可供选择，包括由大公司生产的专有软件，以及由志愿者创建并提供支持的开源项目。

我们可以将操作系统看作汽车的发动机。发动机可以单独运转，但与变速箱、车轴和车轮组合在一起时，便可以让一辆汽车正常行驶。如果发动机不能正常运转，汽车就无法行驶。

[了解如何通过标准化操作系统提高 IT 效率](/zh-cn/engage/improve-it-efficiency-standardized-os-20231213 "SOLP：通过标准化操作系统提高 IT 效率")







 

## 红帽资源











[扩展阅读](/zh-cn/resources "扩展阅读")







 

   

## Linux 的工作原理



[Linux](/zh-cn/topics/linux) 的设计与 UNIX 类似，但经过不断变革，它已可以在手机和[超级计算机](/zh-cn/blog/red-hat-enterprise-linux-builds-foundation-worlds-fastest-supercomputers)等各种硬件上运行。每个基于 Linux 的操作系统都包含 [Linux 内核](/zh-cn/topics/linux/what-is-the-linux-kernel)（负责管理硬件资源）和一组软件包（构成操作系统的其余部分）。企业也可以选择在 [Linux 服务器](/zh-cn/topics/linux/linux-server)上运行他们的 Linux 操作系统。

Linux 包含一些常见的核心组件，例如 GNU 工具。通过这些工具，用户可以管理内核提供的资源，安装其他软件，配置性能和安全防护设置等等。所有这些工具捆绑在一起，就构成了一个功能正常的操作系统。由于 Linux 是一个*开源*操作系统，因此不同 Linux 发行版之间的软件组合可能会有所不同。

[哪个 Linux 发行版最适合您？](/zh-cn/topics/linux/whats-the-best-linux-distro-for-you)







 

## GUI 和命令行有何区别？



使用操作系统时，主要通过两种方式之一向计算机下达命令：图形用户界面（GUI）或命令行（CLI）。GUI 是指启动操作系统时可以看到并能与之交互的一切内容，例如菜单、窗口和桌面图标。如果可以使用鼠标指向并点击某个内容，那么它可能就是 GUI 的一部分。这是使用操作系统最直接的方法，因为最常见的用户操作都是作为 GUI 的一部分来表示的。

更复杂的任务通常需要使用命令行，使用命令行可以直接访问计算机。通过命令行，您可以让软件执行 GUI 无法处理的复杂或特定硬件操作。

许多操作系统上都可以使用命令行，无论是专有还是开源系统。但是，它们与 Linux 的关联通常更紧密，因为命令行和开源软件都可以让用户以不受限制的方式访问自己的计算机。







 

## Linux 包含哪几部分？



- **内核：**操作系统的基本组件。没有它，操作系统将无法运行。内核管理系统资源，并与硬件进行通信。它负责内存、进程和文件的管理。
- **系统用户空间：**系统级任务（例如配置和软件安装）的管理层。系统用户空间包括 shell（或称为命令行）、守护进程（在后台运行的进程）和桌面环境。
- **应用：**一种用于执行任务的软件。应用包括桌面工具、编程语言和多用户业务套件等各种软件。大多数 Linux 发行版都会提供一个中央数据库，用于搜索和下载其他应用。







 

## Linux 与开源



Linux 是一款基于 [GNU 通用公共许可证（GPL）](/zh-cn/blog/gpl-cooperation-commitment-and-red-hat-projects)发布的免费、开源操作系统。只要符合相应的许可条件，任何人都可以运行、研究、修改和重新分发源代码，甚至还可以销售修改后代码的副本。

据云原生计算基金会称，[Linux 已成为](https://www.cncf.io/blog/2024/01/17/a-look-back-at-cncf-linux-foundation-and-top-30-open-source-project-velocity-in-2023/)全球范围内规模最大的开源软件项目。世界各地的专业程序员和业余爱好者以及[开发人员](/zh-cn/technologies/linux-platforms/enterprise-linux/red-hat-enterprise-linux-for-developers)共同助力 [Linux 内核](/zh-cn/topics/linux/what-is-the-linux-kernel)的开发，不断为其添加功能，查找和修复漏洞及安全缺陷，[实时安装补丁](/zh-cn/topics/linux/what-is-linux-kernel-live-patching)，并提供全新创意，同时将自己做出的贡献分享回社区。

[进一步了解开源](/zh-cn/about/open-source "关于开源")







 

## Linux 的优势



个人和企业选择运行 Linux 的原因各不相同。促使人们选择 Linux 而不是其他操作系统的主要原因有以下几点：

- **用途广泛**。Linux 足够灵活，几乎可以满足您能想到的任何需求。它可以为各种技术提供支持，无论是小型的数据收集边缘设备，还是[全球的大型公司所依赖的](/en/blog/ready-for-liftoff-lockheed-martin-uses-red-hat?dyn_redirect=zh_en)页面当前以 English 显示（暂无 zh 选项）复杂云原生应用。由于 Linux 是开源的，因此更容易避免受制于单一供应商的解决方案。如果技术栈中有不合适的内容，您可以使用基于 Linux 的开源替代方案。
- **安全防护**。Linux 的模块化机制对于安全防护方法尤其有利，因为您可以全面监控操作系统。[SELinux](/zh-cn/topics/linux/what-is-selinux) 自 2003 年以来一直是 Linux 内核的一部分，它让管理员可以清楚了解并精细控制用户访问权限和应用权限。这是 Linux 所实现的[全面安全防护方法](/zh-cn/topics/security)的一个方面。
- **社区**。围绕 Linux 的全球实践社区已经存在了数十年，围绕特定项目还形成了数千个小型社区。这意味着总有人愿意分享想法、故障排除技巧和最新创新成果。







 

## 为什么选择红帽？



Linux 为现代 IT 堆栈提供了可靠的基础，而红帽是开源社区中 Linux 内核和相关技术的[主要贡献者之一](https://lwn.net/Articles/941675/)。红帽® 工程师可以帮助改进功能、可靠性和安全性，确保您的基础架构在任何用例和工作负载下都能持续稳定地运行。

[红帽企业 Linux](/zh-cn/technologies/linux-platforms/enterprise-linux) 提供了一个标准操作环境，能让您的企业在各种环境中执行操作，为裸机、[虚拟环境](/zh-cn/topics/virtualization)和容器化环境，以及[私有](/zh-cn/topics/cloud-computing/what-is-private-cloud)云和[公共](/zh-cn/topics/cloud-computing/what-is-public-cloud)云中的各类业务应用提供支持。

[了解红帽企业 Linux](/zh-cn/topics/linux/why-choose-red-hat-enterprise-linux "文章 | 为什么选择红帽 Linux？")







 

 

   









博客文章



### 您的战略自主性有多高？红帽数字主权就绪度评估工具简介



红帽数字主权就绪度评估工具 (Red Hat Sovereignty Readiness Assessment tool) 是一款基于 Web 的自助式评估工具，能够针对您组织在七大关键领域的数字化掌控力，提供清晰、客观的基准分析。











[阅读博客文章](/zh-cn/blog/how-sovereign-your-strategy-introducing-red-hat-sovereignty-readiness-assessment-tool?intcmp=RHCTG0260000475343 "您的战略自主性有多高？红帽数字主权就绪度评估工具简介")







   

 

 

   

### 所有红帽产品试用

我们的免费试用服务可让您亲身体验红帽的产品功能，为获得认证做好准备，或评估某个产品是否适合您的企业组织。



 

    

[扩展阅读](/zh-cn/products/trials "所有红帽产品试用") 

 

 

 

 



 

   

## 扩展阅读



  











### 为什么选择 AWS 上的红帽企业 Linux？



 AWS 携手红帽企业 Linux 提供各式解决方案，帮助您转变 IT 环境和运维，拥抱云端未来。 









[阅读文章](/zh-cn/technologies/linux-platforms/enterprise-linux/why-choose-red-hat-enterprise-linux-on-aws "article | Why choose Red Hat Enterprise Linux on AWS? &#91;DO NOT OVERWRITE ZH META&#93;")





 

  











### 如何从其他 Linux 发行版迁移至红帽企业 Linux



 利用 convert2RHEL 工具从 CentOS Linux®、Oracle Linux、Alma Linux 或 Rocky Linux 迁移至红帽® 企业 Linux。 









[阅读文章](/zh-cn/technologies/linux-platforms/enterprise-linux/migration-process/convert2rhel "product-specific article | convert2rhel &#91;DO NOT OVERWRITE ZH META&#93;")





 

  











### 什么是黄金镜像？



 黄金镜像是指特意配置的系统（或服务器、虚拟桌面环境甚至磁盘驱动器）快照，可用于部署新实例。 









[阅读文章](/zh-cn/topics/linux/what-is-a-golden-image "article | What is a golden image?")





 

 

 

   

### Linux 相关资源



 

### 相关内容

 

 

- 电子书
    
     [Why the os is still a strategic choice for modern IT](/zh-cn/resources/why-os-choice-for-modern-it-ebook)
- 电子书
    
     [Why the os is still a strategic choice for modern IT](/zh-cn/engage/why-os-choice-for-modern-it-ebook)
- 技术详情
    
     [Red Hat Enterprise Linux subscription guide](/zh-cn/resources/red-hat-enterprise-linux-subscription-guide)
- 博客文章
    
     [Better together: RHEL system roles and Red Hat Ansible Automation Platform](/zh-cn/blog/better-together-red-hat-enterprise-linux-system-roles-and-red-hat-ansible-automation-platform)
 
 

 

 

 

 

### 相关文章

 

 

- [What is KVM?](/zh-cn/topics/virtualization/what-is-KVM)
- [What is Kogito?](/zh-cn/topics/automation/what-is-kogito)
- [Ansible vs. Salt: What you need to know](/zh-cn/topics/automation/ansible-vs-salt)
- [Ansible vs. Puppet: What you need to know](/zh-cn/topics/automation/ansible-vs-puppet)
- [Ansible vs. Chef: What you need to know](/zh-cn/topics/automation/ansible-vs-chef)
- [Understanding Ansible, Terraform, Puppet, Chef, and Salt](/zh-cn/topics/automation/understanding-ansible-vs-terraform-puppet-chef-and-salt)
- [Why choose Red Hat Enterprise Linux on AWS?](/zh-cn/technologies/linux-platforms/enterprise-linux/why-choose-red-hat-enterprise-linux-on-aws)
- [How to move to Red Hat Enterprise Linux from other Linux distros](/zh-cn/technologies/linux-platforms/enterprise-linux/migration-process/convert2rhel)
- [What is post-quantum cryptography?](/zh-cn/topics/security/post-quantum-cryptography)
- [What is a golden image?](/zh-cn/topics/linux/what-is-a-golden-image)
- [Why choose Red Hat for Linux?](/zh-cn/topics/linux/why-choose-red-hat-enterprise-linux)
- [What is the SAP HANA migration?](/zh-cn/topics/linux/what-is-sap-hana-migration)
- [Ansible vs. Terraform](/zh-cn/topics/automation/ansible-vs-terraform)
- [What is Podman Desktop?](/zh-cn/topics/containers/what-is-podman-desktop)
- [Red Hat Enterprise Linux security](/zh-cn/technologies/linux-platforms/enterprise-linux/security-old)
- [Linux on Azure](/zh-cn/topics/linux/linux-on-azure)
- [Linux for cloud computing](/zh-cn/topics/linux/linux-for-cloud-computing)
- [What to know for Red Hat Enterprise Linux 7 End of Maintenance](/zh-cn/technologies/linux-platforms/enterprise-linux/rhel-7-end-of-maintenance)
- [Red Hat Satellite on Red Hat Enterprise Linux](/zh-cn/technologies/management/satellite/satellite-for-rhel)
- [What is Helm?](/zh-cn/topics/devops/what-is-helm)
- [What is InstructLab?](/zh-cn/topics/ai/what-is-instructlab)
- [What is Argo CD?](/zh-cn/topics/devops/what-is-argocd)
- [Why choose Red Hat Enterprise Linux on Google Cloud?](/zh-cn/technologies/linux-platforms/enterprise-linux/why-choose-red-hat-enterprise-linux-google-cloud)
- [What are CentOS replacements?](/zh-cn/topics/linux/centos-alternatives)
- [What is CentOS Stream?](/zh-cn/topics/linux/what-is-centos-stream)
- [What to know about CentOS Linux EOL](/zh-cn/topics/linux/centos-linux-eol)
- [What is CentOS?](/zh-cn/topics/linux/what-is-centos)
- [What is MicroShift?](/zh-cn/topics/edge-computing/microshift)
- [What is ERP?](/zh-cn/topics/linux/what-is-erp)
- [Why run Linux on IBM Cloud](/zh-cn/topics/linux/linux-on-ibm-cloud)
- [Why choose Red Hat Enterprise Linux on Azure?](/zh-cn/technologies/linux-platforms/enterprise-linux/why-choose-red-hat-enterprise-linux-on-azure)
- [What was CoreOS and CoreOS container Linux](/zh-cn/technologies/cloud-computing/openshift/what-was-coreos)
- [Why run Linux on Google Cloud?](/zh-cn/topics/linux/linux-on-google-cloud)
- [OpenJDK versus Oracle JDK](/zh-cn/topics/application-modernization/openjdk-vs-oracle-jdk)
- [What is Cloud Foundry?](/zh-cn/topics/application-modernization/what-is-cloud-foundry)
- [What is Buildah?](/zh-cn/topics/containers/what-is-buildah)
- [What is Knative?](/zh-cn/topics/microservices/what-is-knative)
- [What is etcd?](/zh-cn/topics/containers/what-is-etcd)
- [What is Linux kernel live patching?](/zh-cn/topics/linux/what-is-linux-kernel-live-patching)
- [What's the best Linux distro for you?](/zh-cn/topics/linux/whats-the-best-linux-distro-for-you)
- [What's the difference between Fedora and Red Hat Enterprise Linux](/zh-cn/topics/linux/fedora-vs-red-hat-enterprise-linux)
- [What is an image builder?](/zh-cn/topics/linux/what-is-an-image-builder)
- [What is a Linux server?](/zh-cn/topics/linux/linux-server)
- [Why run Linux on AWS?](/zh-cn/topics/linux/linux-on-aws)
- [What is a configuration file?](/zh-cn/topics/linux/what-configuration-file)
- [Red Hat OpenShift vs. OKD](/zh-cn/topics/containers/red-hat-openshift-okd)
- [What is high availability?](/zh-cn/topics/linux/what-is-high-availability)
- [What is Apache Kafka?](/zh-cn/topics/integration/what-is-apache-kafka)
- [Spring on Kubernetes with Red Hat OpenShift](/zh-cn/technologies/cloud-computing/openshift/spring)
- [Why run Apache Kafka on Kubernetes?](/zh-cn/topics/integration/why-run-apache-kafka-on-kubernetes)
- [What is high performance computing (HPC)?](/zh-cn/topics/high-performance-computing/what-is-high-performance-computing)
- [Ansible vs. Red Hat Ansible Automation Platform](/zh-cn/technologies/management/ansible/ansible-vs-red-hat-ansible-automation-platform)
- [Why run Microsoft SQL Server on Linux?](/zh-cn/topics/linux/why-run-sql-server-on-linux)
- [What is Podman?](/zh-cn/topics/containers/what-is-podman)
- [What is an ARM processor?](/zh-cn/topics/linux/what-is-arm-processor)
- [ARM vs x86: What's the difference?](/zh-cn/topics/linux/ARM-vs-x86)
- [What is Skopeo?](/zh-cn/topics/containers/what-is-skopeo)
- [Using Helm with Red Hat OpenShift](/zh-cn/technologies/cloud-computing/openshift/helm)
- [What is lightweight directory access protocol (LDAP) authentication?](/zh-cn/topics/security/what-is-ldap-authentication)
- [What is Grafana?](/zh-cn/topics/data-services/what-is-grafana)
- [What is open source software?](/zh-cn/topics/open-source/what-is-open-source-software)
- [Open source vs. proprietary software in vehicles](/zh-cn/topics/open-source/open-source-vs-proprietary-software-in-vehicles)
- [What is KubeLinter?](/zh-cn/topics/containers/what-is-kubelinter)
- [Functional safety and continuous certification on Linux](/zh-cn/topics/open-source/functional-safety-and-continuous-certification-on-linux)
- [What is RKT?](/zh-cn/topics/containers/what-is-rkt)
- [What is a Linux certification?](/zh-cn/topics/linux/linux-certification)
- [What is Jaeger?](/zh-cn/topics/microservices/what-is-jaeger)
- [What is open source?](/zh-cn/topics/open-source/what-is-open-source)
- [What is SELinux?](/zh-cn/topics/linux/what-is-selinux)
- [What is the Linux kernel?](/zh-cn/topics/linux/what-is-the-linux-kernel)
- [What is Istio?](/zh-cn/topics/microservices/what-is-istio)
- [What is Clair?](/zh-cn/topics/containers/what-is-clair)
- [Red Hat Enterprise Linux migration process](/zh-cn/technologies/linux-platforms/enterprise-linux/migration-process)
- [What is SAP HANA (and why does it run on Linux)?](/zh-cn/topics/linux/sap-hana-and-linux)
- [What is Docker?](/zh-cn/topics/containers/what-is-docker)
 
 

 

   

[有关此主题的更多信息](/zh-cn/topics/linux "有关此主题的更多信息")