Home  >  Article  >  Operation and Maintenance  >  Summarize the differences between centos and ubuntu commands

Summarize the differences between centos and ubuntu commands

藏色散人
藏色散人forward
2021-05-06 10:04:514846browse

The following tutorial column will introduce and summarize the differences between centos and ubuntu commands. I hope it will be helpful to friends in need!

CentOS (Community ENTerprise Operating System) is one of the Linux distributions. It is compiled from the source code released by Red Hat Enterprise Linux in accordance with the open source code regulations. become. Because it comes from the same source code, some servers that require high stability use CentOS instead of the commercial version of Red Hat Enterprise Linux.

Summarize the differences between centos and ubuntu commandsUbuntu is a Linux operating system mainly based on desktop applications. Ubuntu is based on the Debian distribution and the GNOME desktop environment. The difference from Debian is that it releases a new version every 6 months. The goal of Ubuntu is to provide general users with an up-to-date, yet fairly stable operating system mainly built from free software. Ubuntu has a huge community power, and users can easily get help from the community.

Both are service-level operating systems commonly used by individuals and small teams in the current version. Many open source software and libraries can be easily installed in the software library provided online. Both use bash as the basic shell, so in many basic commands, the difference between ubuntu and centos is not very obvious, and ubuntu does a better job in the desktop interface. It is the first choice for many people to learn Linux out of interest. Usually it is Ubuntu, after all, many people are still accustomed to operating under desktop graphics.

There are still many differences in usage habits and commands between Centos and Ubuntu. Here is a brief list:

1. The newly created non-root user in centos does not have sudo permissions. If you need to use sudo permissions, Accounts and permissions must be added to /etc/sudoers, so when switching to the root account, you only need to enter: su and add the password of the root account.

In Ubuntu, the sudo command is generally used. If it is used for the first time, you will be prompted to enter the current user's password (instead of the root password)

2. In online installation software, centos uses the yum command, and The apt-get command is used in ubuntu. In addition, there is a method in yum to search for a software from the software source: yum search. The software name

3.centos comes from redhat, so centos supports installation in rpm format, but ubuntu obviously does not support it.
4. After all, different companies make different distributions. The locations of many configuration files and the default file paths are very different. This needs to be gradually realized during use.

The command differences are summarized in the following table:

The above is the detailed content of Summarize the differences between centos and ubuntu commands. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete