Differences: 1. To install software online, centos uses the yum command, while ubuntu uses the apt-get command; 2. centos supports installation in rpm format, but ubuntu does not; 3. There are many configuration files in ubuntu and centos The location and default file path are different.

CentOS (Community ENTerprise Operating System) is one of the Linux distributions. It is an open source code from Red Hat Enterprise Linux. Compiled from the source code specified for release. 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.

Centos' LOG
Ubuntu is a Linux operating system mainly based on desktop applications. Its name comes from the Zulu or Hao language in southern Africa. The word "ubuntu" in the Sa language (translated as Wubangtuo or Ubuntu) means "humanity" and "my existence is because of everyone's existence". It is a traditional African value, similar to the "ubuntu" of the Chinese society. "Benevolence" thought. 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 that is primarily built with free software. Ubuntu has a huge community power, and users can easily get help from the community.

Ubuntu's LOG
Both are service-level operating systems commonly used by individuals and small teams in the current version. They can be easily installed in the software library provided online. to many open source software and libraries. 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, you must use / Add accounts and permissions 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 software name
3. Centos comes from redhat, so centos supports installation in rpm format, and ubuntu obviously Unsupported.
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.
5. Centos is built based on Redhat open source and is most commonly used in server systems. Ubuntu is a programmer development environment and is most commonly used in desktop environments.
6. For ubuntu, it is the concrete version of the linux operating system, while for ubuntu, linux is its abstraction; in the linux operating system, there are multiple versions due to different applications and management strategies. , For example: ubuntu, fedora, redhat, centos, etc.;
7. Linux is open source, so there are various distribution versions on the Internet, and Ubuntu Linux is one of them. Ubuntu uses the Linux kernel and the graphical interface uses GNOME (Kubuntu uses KDE). In short, Linux system is a general term. It includes Red Hat, Debian, Suse, Ubuntu and other distribution versions. They all use the Linux kernel and are all Linux systems.
8. Many commercial companies deploy servers in production environments using the CentOS system. Centos is a re-released version compiled from the Redhat source code. Centos removes many applications that have nothing to do with server functions. The system is simple but It is very stable, command line operation can facilitate the management of systems and applications, and is supported by helpful documentation and community.
9. The Ubuntu system has a beautiful user interface, a complete package management system, powerful software source support, and a rich technical community. Ubuntu's support for computer hardware is better than centos and Debian, and it has strong compatibility. Ubuntu has many applications, but for a server operating system, it does not need too many applications. What is needed is a system that is stable, easy to operate, and simple to maintain. If you need to use a graphical interface on the server side, Ubuntu is a good choice. What you need to note is that the graphical interface takes up a lot of memory, and the larger the memory, the higher the price of a vps.
Recommended related tutorials: centos introductory tutorial
The above is the detailed content of What is the difference between ubuntu and centos?. For more information, please follow other related articles on the PHP Chinese website!
How to check the status of FirewallD and its rules?Jul 23, 2025 am 03:18 AMTo view the status and rules of FirewallD, you can follow the following steps: 1. Use systemctlstatusfirewalld to confirm whether the service is running. If it is not running, you can start sudosystemctlstartfirewalld and set the power on and start it up with enable; 2. View the current area through firewall-cmd-get-active-zones, and use --get-zones to view all areas; 3. Execute firewall-cmd-list-all to view all rules in the current area. Add the --zone parameter to specify the area, and use --list-rich-rules to view rich
How to filter journalctl output by a specific service or time?Jul 23, 2025 am 03:16 AMTo filter journalctl logs, view them by service or time range. 1. Filter by service name: use journalctl-u, such as journalctl-unginx.service; if you are not sure of service name, you can find systemctllist-units|grep. 2. Filter by time range: use --since and --until to specify the time, such as journalctl--since"1hourago" or journalctl--since"2025-04-0510:30:00"--until"2025
How to reset root password in CentOSJul 23, 2025 am 02:16 AMReboot and enter the GRUB menu, press e to edit the startup item; 2. Add init=/bin/bash or rd.break at the end of linux or linux16 line; 3. If you use rd.break, you need to chroot/sysroot first, then mount-oremount,rw/; 4. Execute passwdroot to set a new password; 5. If SELinux is enabled, run touch/.autorelabel; 6. Execute reboot-f to restart to take effect. This method is suitable for CentOS7 and above and requires physical or console access.
How to create a systemd service fileJul 23, 2025 am 02:01 AMCreate a service file: Create a .myapp.service file in /etc/systemd/system/, set the [Unit], [Service], [Install] sections and configure key parameters such as Description, ExecStart (using absolute path), User, Restart, etc.; 2. Reload and enable the service: execute sudosystemctldaemon-reload, enable, and start to enable the service and set the power-on self-start; 3. Avoid common errors: do not use relative paths, do not run with root, ensure the script permissions are correct, must be overloaded after modification, and finally use sudosystemct
How to use rsync to efficiently transfer files?Jul 22, 2025 am 03:29 AMRsync is an efficient and reliable file transfer and synchronization tool. Its basic command structure is rsync[Options] source path and target path, which supports local copying, remote pulling or pushing files. 1. Common options include -a (archive mode), -v (detailed output), and -z (compressed transmission). 2. Use the -essh parameter when performing secure transmission via SSH, and it is recommended to configure the key login to avoid password input. 3. Use --exclude to exclude specific files or directories, such as logs, caches, version control directories, etc., and you can also list multiple exclusions through files. 4. If the transmission is interrupted, you can use --partial to retain the transmitted part and continue from the interruption. Combined with --progress to view the progress. 5. Pay attention
How to secure the SSH server on CentOS?Jul 22, 2025 am 02:17 AMTo improve SSH service security, you need to modify the default port to disable root login using key authentication and restrict access to the source. 1. Modify the Port value in /etc/ssh/sshd_config and restart the sshd service to avoid automated scanning; 2. Set PermitRootLogin to no and create a normal user with sudo permissions to prevent the leakage of administrator permissions; 3. Use ssh-keygen to generate a key pair and deploy the public key through ssh-copy-id and then close PasswordAuthentication to enhance login security; 4. Only allow specific IPs or network segments to access SSH ports through firewalld settings and deny all other connections to shrink
How to view the history of yum transactions?Jul 22, 2025 am 01:39 AMTo view the history of YUM transactions in Linux system, mainly use the yumhistory command. First, run yumhistory to list all YUM transactions, including IDs, operations and timestamps; secondly, use yumhistoryinfo to view the detailed information of a specific transaction; if you need to filter records, you can use yumhistorylist to view only the operations of a certain package, or use yumhistorylistall--since'1weekago' and yumhistorylistall--start-date'2024-03-01'--end-date'2024-03-10' to filter by date range; in addition,
How to list all users on the system?Jul 22, 2025 am 01:18 AMThe method of listing all users in the Linux system is as follows: 1. Use cat/etc/passwd to view the complete user information; 2. Use cut command to extract only user names: cut-d:-f1/etc/passwd; 3. Use getentpasswd to list users including network services; 4. Use getentpasswd|cut-d:-f1 to obtain the name of the network service user; 5. Use awk to filter UID ≥1000 and non-nobody users to identify ordinary users; 6. Use last|grep "stillloggedin" to check the current active user. These methods are applicable to viewing local users and network


Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

Dreamweaver CS6
Visual web development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

WebStorm Mac version
Useful JavaScript development tools

Notepad++7.3.1
Easy-to-use and free code editor







