Table of Contents
Introduction to red hat linux
Red Hat Redhat—Linux basic command line usage
Home Common Problem What are the characteristics of red hat linux?

What are the characteristics of red hat linux?

Mar 15, 2023 am 11:14 AM
linux redhat

Features of red hat linux: 1. Multi-user and multi-task operating system, one computer can be used by multiple users at the same time, and can execute multiple tasks submitted by multiple users at the same time; 2. Good Compatibility; 3. Powerful portability, whether it is a handheld computer, a personal computer, a small computer, a medium-sized computer, or even a large computer can run Linux; 4. High stability, reliability and security; 5 , openness and low cost.

What are the characteristics of red hat linux?

#The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, Dell G3 computer.

Introduction to red hat linux

What is red hat linux

Red Hat Linux ((RHEL)) is developed by Red An open source Linux distribution compiled by Hat Company. It was active from 1995 to 2004, with several versions of the software released during this period.

Various versions of Red Hat Linux have been released, with the first version released on May 13, 1995. Red Hat Linux was created to be easy to use and install compared to other Linux distributions . It included a graphical installer that was later used by other Linux distributions. Later versions included UTF-8 encoding, making it more suitable for a wider range of languages. However, due to copyright and patent issues, Red Hat Linux lacks many features, such as support for the NTFS file system and MP3, but these features can be installed later.

In 2003, Red Hat Linux merged with the community-based Fedora project, which replaced the original retail and download versions of Red Hat Linux.

Red Hat Linux (RHEL) is a Linux-based operating system designed by Red Hat specifically for enterprises. RHEL can run on a desktop, server, hypervisor, or cloud. Red Hat is one of the most widely used Linux distributions in the world.

RedHat is an operating system based on LINUX core architecture. RedHat Linux is currently the most used Linux operating system in the world. Because it has the best graphical interface, it is very convenient to install, configure and use, and it runs stably, so both novices and experienced players speak highly of it.

What are the characteristics of red hat linux?

Characteristics of red hat linux

1. Multi-user multi-tasking operating system

refers to a A computer can be used by multiple users at the same time and can perform multiple tasks submitted by multiple users at the same time.

  • Multi-user: Linux supports multiple users using the same computer from the same or different terminals at the same time, without the so-called license restrictions of commercial software;

    Linux treats different types of users differently, granting them different permissions and storage spaces respectively. Each user has specific permissions to use their own software and hardware resources (such as files and devices), which are independent of each other and do not affect each other. .

  • Multi-tasking: Within the same time period, Linux can respond to different operation requests from multiple users.

2. Good compatibility

Complies with IEEE's POSIX (Portable Operating System Interface of UNIX, Portable Operating System Interface for UNIX) standard and is compatible with current mainstream UNIX system. Programs that can run in UNIX can almost entirely run in Linux, which makes it possible to transfer application systems from UNIX to Linux.

3. Powerful portability

Whether it is a handheld computer, a personal computer, a small computer, a medium-sized computer, or even a large computer, Linux can be run.

4. High stability, reliability and security

Linux inherits the excellence of UNIX and can run continuously for months or years without restarting.

So far, only a handful of viruses have infected Linux. This strong immunity is attributed to Linux’s robust infrastructure.

Linux's infrastructure consists of multiple layers that have nothing to do with each other. Each layer has specific functions and strict permissions to ensure maximum stable operation.

5. Openness and low fees.

Red Hat Redhat—Linux basic command line usage

1. What is a shell?

bash shell

A command line is a text-based interface that can be used to enter instructions into a computer system; the linux command line is provided by a program , this program is called a shell.

What are the characteristics of red hat linux?

#What is a shell prompt?

Use the shell interactively and display a string while waiting for the user to enter a command. This interface is called a prompt.

When ordinary users start the shell, the interface ends with a dollar and a $ character.

When the root user starts the shell, the interface ends with the # character.

[root@localhost ~]#
Copy after login

When ordinary users start the shell, the interface ends with the $ character.

[user@localhost ~]$
Copy after login

What are the characteristics of red hat linux?

对Linux系统的管理方式可以通过物理控制台和虚拟控制台管理物理控制台就是使用键盘鼠标和显示器对Linux系统进行管理,或者通过串行端口管理。

虚拟控制台是通过网络或者其它虚拟控制方式管理Linux系统。

RHEL8.0的版本同时提供6个控制台管理,第一个控制台为图形化管理也叫GUI管理,另外二至六控制台为命令行管理方式;可以通过按住Ctrl+Alt并按住功能键(F2­~F6)切换。

二、基本命令

1.命令访问

标准Linux命令行语法格式:command + -option + argument。
command (命令字):运行程序的名字,永远写在开头。
option (选项):由一个或两个“-”引导,改变命令的行为。
argument(参数):通常是命令要操作的目标,注意先后顺序,大多数命令可以使用--help 显示用法信息。
大多数参数一般可以与选项颠倒使用,不需要刻意规定(不是所有)。

[root@localhost ~]# ls -l /etc/passwd
-rw-r--r--. 1 root root 2658 12月  9 14:56 /etc/passwd
Copy after login

#命令(ls)、 选项(­l)、参数(/etc/passwd
命令、选项、参数 之间都必须要使用空格隔开。
选项: 用于修饰或者调整命令,不同选项会使命令有不同的作用。
短选项:-
长选项:--
可以同时跟多个选项,比如 -­l -­h = -­lh

2.参数:命令的作用对象

注:

ls -a ls--all

一个“-”后面跟简写 。 两个“--”后面跟全称

[root@localhost ~]# usermod -L rhel
Copy after login

#命令(usermod) 选项(­L) 和参数(rhel)
该命令的意思是锁定用户user帐户的密码。
exit或ctrl + d退出当前shell

3.配置主机名

[root@localhost ~]# hostnamectl set-hostname server
[root@localhost ~]# bash
[root@server ~]#
Copy after login

exit退出再次登录shell或者bash

4.修改系统语言

[root@server ~]# locale //查看系统语言包
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[root@server ~]# localectl set-locale.UTF-8 //英语
[root@server ~]# reboot //重启系统
Copy after login

更改语言后要重启系统才能生效,GUI登陆时会有更改家目录文件夹名字的弹窗点击Update Names

What are the characteristics of red hat linux?

[root@server ~]# localectl set-locale LANG=zh_CN.UTF-8 简体中文
在Linux系统中,命令是严格区分大小写的(谨记)。
系统语言问题:

[root@server ~]# echo $LANG		//显示目前所支持的语言
en_US.UTF-8
Copy after login

zh_CN.UTF­8 简体中文
en_US.UTF­8 英文

5.用户名密码管理:

[root@server ~]# useradd rhel1		//创建rhel1用户
[root@server ~]# passwd rhel1 		//后面跟的是用户名
Changing password for user rhel1.
New password: 		//此处为输入的密码,不显示位数
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 		//此处为输入的密码,不显示位数
passwd: all authentication tokens updated successfully.
Copy after login

创建一个用户名为rhel1 密码为redhat
或者:

[root@server ~]# echo "redhat" | passwd --stdin rhel1		//可以看见密码
Copy after login

对在线处理用户的锁定及管理操作

[root@server ~]# who		//查看当前在线用户
root     pts/0        2020-12-14 18:18 (192.168.2.108)
root     tty2         2020-12-14 18:34 (tty2)
rhel     tty3         2020-12-14 18:35 (tty3)
[root@server ~]# pkill -19 -t tty3		//锁定tty3用户
[root@server ~]# pkill -18 -t tty3		//释放tty3用户
Copy after login

6.cat

cat [选项] [文件]或绝对路径

cat主要有三大功能:

1)一次显示整个文件:cat /etc/passwd

[root@server ~]# cat /etc/passwd		//显示整个passwd文件
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
……
rhel:x:1000:1000:rhel:/home/rhel:/bin/bash
rhel1:x:1001:1001::/home/rhel1:/bin/bash
Copy after login

2)从键盘创建一个文件:cat > filename 只能创建新文件,不能编辑已有文件。

[root@server ~]# cat > filename
Copy after login

3)将几个文件合并为一个文件:cat file1 file2 > file3

[root@server ~]# touch file1 file2 file3		//创建file1 file2 file3
[root@server ~]# vim file1 		//i编辑hello1 按esc :wq保存退出
[root@server ~]# vim file2		//i编辑hello1 按esc :wq保存退出
[root@server ~]# cat file1 file2 > file3		//把file1 file2文件的内容输入到file3
[root@server ~]# cat file3		//查看file3文件
hello1
hello2
Copy after login

7.rm 删除文件命令

rm ­-f 文件名 [将会强行删除文件,且无提示]

rm ­-rf 目录名字 [删除文件夹以及文件夹中的所有文件命令]

其中:

  • -­r:向下递归删除

  • -­f:直接强行删除,且没有任何提示

注意:
使用rm -­rf要格外注意,linux中没有回收站,慎重操作。

8.时间管理

[root@server ~]# date		//查看当前用户的年月日星期时间
Mon Dec 14 19:24:30 CST 2020
[root@server ~]# date +%R		//查看当前用户时间
19:24
[root@server ~]# date +%x		//查看当前用户年月日
12/14/2020
[root@server ~]# date -s 20201215		//修改时间为2020年12月15日
Tue Dec 15 00:00:00 CST 2020
[root@server ~]# date -s 20:20:20		//修改时间为20点20分20秒
Tue Dec 15 20:20:20 CST 20
Copy after login

-­s 修改时间

  • date +%Y.%m.%d (Y大写,m、d小写)

  • date +%H:%M:%S (大写)

[root@server ~]# cal		//直接执行,显示系统当月的日历
    December 2020   
Su Mo Tu We Th Fr Sa
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Copy after login
[root@server ~]# cal 2020		//显示2020年整个年度的日历
                               2020                               

       January               February                 March       
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
          1  2  3  4                      1    1  2  3  4  5  6  7
 5  6  7  8  9 10 11    2  3  4  5  6  7  8    8  9 10 11 12 13 14
12 13 14 15 16 17 18    9 10 11 12 13 14 15   15 16 17 18 19 20 21
19 20 21 22 23 24 25   16 17 18 19 20 21 22   22 23 24 25 26 27 28
26 27 28 29 30 31      23 24 25 26 27 28 29   29 30 31            
                                                                  
        April                   May                   June        
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
          1  2  3  4                   1  2       1  2  3  4  5  6
 5  6  7  8  9 10 11    3  4  5  6  7  8  9    7  8  9 10 11 12 13
12 13 14 15 16 17 18   10 11 12 13 14 15 16   14 15 16 17 18 19 20
19 20 21 22 23 24 25   17 18 19 20 21 22 23   21 22 23 24 25 26 27
26 27 28 29 30         24 25 26 27 28 29 30   28 29 30            
                       31                                         
        July                  August                September     
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
          1  2  3  4                      1          1  2  3  4  5
 5  6  7  8  9 10 11    2  3  4  5  6  7  8    6  7  8  9 10 11 12
12 13 14 15 16 17 18    9 10 11 12 13 14 15   13 14 15 16 17 18 19
19 20 21 22 23 24 25   16 17 18 19 20 21 22   20 21 22 23 24 25 26
26 27 28 29 30 31      23 24 25 26 27 28 29   27 28 29 30         
                       30 31                                      
       October               November               December      
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
             1  2  3    1  2  3  4  5  6  7          1  2  3  4  5
 4  5  6  7  8  9 10    8  9 10 11 12 13 14    6  7  8  9 10 11 12
11 12 13 14 15 16 17   15 16 17 18 19 20 21   13 14 15 16 17 18 19
18 19 20 21 22 23 24   22 23 24 25 26 27 28   20 21 22 23 24 25 26
25 26 27 28 29 30 31   29 30                  27 28 29 30 31
Copy after login
[root@server ~]# cal 12 2020		//显示2020年12月份的日历
    December 2020   
Su Mo Tu We Th Fr Sa
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Copy after login

9.bc 计算器

bc [回车]
scale=3 显示小数点后面三位
quit 退出

10.cd切换目录

cd ­ 退回到当前用户家目录
cd a/b/c 相对路径:以当前目录作为起点,切换目录 *
cd /root/a/b/c 绝对路径:以根目录作为起点,切换目录
cd .. 返回上一级目录
cd ~ 退回当前用户的家目录

11.正确的关机方法:

[root@server ~]# reboot		//重启主机
Copy after login

其它一些关机命令:halt、poweroff

shutdown的一些参数使用:

shutdown [-t seconds] [-arkhncfF] Time [warning message]

-t sec: Add the number of seconds after -t, which is how many seconds have passed The meaning of shutting down after seconds

Parameters:

  • -k: Don’t actually shut down, just send a warning message

  • -r: Restart the system after stopping the service

  • -h: Stop the system service Shut down after shutdown

  • -n: Shut down directly using the shutdown function without going through the init program

  • -f: After shutdown, force the disk check of fsck to be skipped

  • -F: After restart, force the disk check of fsck to be performed

  • -c: Cancel the content of the shutdown command that is already in progress.

Time: This refers to the time when the system is shut down.

Example:

/sbin/shutdown -h 10 "I will shutdown after 10 mins"
Let me tell you that this machine will shut down after 10 minutes. And send this warning message to everyone's screen

init: service level, there are 7 levels in Linux, now let's learn about the 4 commonly used levels

  • init 0 Shutdown

  • init 3 Pure command line mode

  • init 5 Mode with graphical interface

  • init 6 Restart

What is the difference between shutdown and halt?

shutdown is to gradually shut down the services that have been started before performing a hardware shutdown. Halt does not consider what service is currently started and directly shuts down the hardware.

12. Commonly used shortcut keys under Linux

tab: Complete command or path
ctrl c: Terminate the currently executed Task
ctrl l: Clear the screen
ctrl d: exit
ctrl u: Delete the content with the cursor to the beginning of the line
ctrl e: Move the cursor to the end of the line
ctrl a: Move the cursor to the beginning of the line
ctrl plus sign/minus sign: adjust the shell window font size

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of What are the characteristics of red hat linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1667
14
PHP Tutorial
1273
29
C# Tutorial
1255
24
Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

vscode Previous Next Shortcut Key vscode Previous Next Shortcut Key Apr 15, 2025 pm 10:51 PM

VS Code One-step/Next step shortcut key usage: One-step (backward): Windows/Linux: Ctrl ←; macOS: Cmd ←Next step (forward): Windows/Linux: Ctrl →; macOS: Cmd →

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

laravel installation code laravel installation code Apr 18, 2025 pm 12:30 PM

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

git software installation git software installation Apr 17, 2025 am 11:57 AM

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)