Total Article 78
In the following articles, the system is Red Hat Enterprise Linux 8.0
operated by version, which is also the version most used by enterprises at present. I hope that it can inspire you after reading the article.
1. Reset the root
administrator password
Sometimes you may Linux
forget the system password. Don’t panic, you can reset it in just a few steps. First of all, you should determine whether your system is the RHEL8
version. If it is, then proceed to the next operation. My system is as shown in the figure below:
At this point, restart the Linux
system and when the boot interface appears, press the key on the keyboard e
to enter the kernel editing interface, as shown in the following figure:
In linux
parameters appended at the end of the line rd.break
parameters, and then press Ctrl + X
run modified kernel, as shown below:
After 20s
about or so, the system enters the emergency rescue mode, and then enter the following commands in sequence, wait for the system to restart, and then you can log in with the new password.
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
reboot
2. RPM
Red Hat Package Manager
Before the RPM(RedHat Package Manager)
release, if you want Linux
to install the software in the system , you can only install it in the form of a source package. This is a very difficult thing. Many times we have to consider the dependencies between other programs when installing, uninstalling, and upgrading programs. The operation is quite difficult.
RPM
It is designed to solve these problems. It is very similar Windows
to the control panel in China. It will establish a unified database, record software information in detail and automatically analyze dependencies. It is currently RPM
used by multiple Linux
systems. RPM
A package is a pre- Linux
compiled and packaged file on the host, which is very quick to install. A few commonly used commands are listed below:
Command format | A detailed description |
---|---|
rpm - help | View rpm help and parameter details |
rpm - ivh filename.rpm | Command format for installing software |
rpm - Uvh filename.rpm | Command format for upgrading software |
rpm - e filename.rpm | Command format for uninstalling software |
rpm - qpi filename.rpm | Command format for querying software description information |
rpm - qpl filename.rpm | Command format for listing software file information |
rpm - qf filename | Command format to query which RPM the file belongs to |
For a RPM
package name: "goodaa-4.20-454.el8_4.5.x86_64", it means the following:
RPM
A feature of the package is that it is a specified operating system version, and RHEL8
the RPM
package can only be installed in this version of the Linux
system. In addition, the end of i686
the RPM
package is the ending package, which is a 32-bit package.
3. YUM
Software warehouse
RPM
It is to simplify the complexity of the installation, and YUM(Yellow dog Updater, Modified)
to further reduce the complexity and resolve dependencies between packages and design. YUM
The software warehouse analyzes the required software packages and their related dependencies according to user requirements, and then automatically downloads the software packages from the server and installs them to the system.
YUM
The following common commands can be used yum - help
to view all.
command | effect |
---|---|
yum repolist all | List all warehouses |
yum list all | List all packages in the warehouse |
yum install | Install all |
yum install package1 | Install the specified package package1 |
yum groupinstall group1 | Installer group group1 |
yum reinstall | re-install |
yum update | Update all |
yum check-update | Check for updateable programs |
yum info package1 | Display information about package package1 |
yum list | Show all installed and installable packages |
yum remove package1 | Delete package package1 |
yum deplist package1 | View the dependencies of package package1 |
yum clean all | Clear all warehouse caches |
yum clean packages | Clear the package in the cache directory |
yum clean headers | Clear headers in the cache directory |
4. Linux
Shortcut keys commonly used in the system
The most basic shortcuts are:
- Press the up and down arrow keys to view historical input commands;
- Press the
Tab
key to completion of both command names or directory, if not the only, and several times, will come out the appropriate list; !ls
Repeat the lastls
command starting with;
Ctrl
The shortcut operations with key combinations are as follows:
hot key | Function description |
---|---|
a | The cursor jumps to the beginning of the line |
b | Move the cursor one letter to the left |
c | Kill the current process |
d | Delete the last character of the prompt or Exit or logout |
e | Move the cursor to the end of the line |
f | Move back one character |
h | Delete the character before the cursor, same as the backspace key |
k | Clear the content after the cursor to the end of the line |
l | Clear the screen, equivalent to clear |
p | Repeat the last command |
r | Search for previously entered commands |
u/w | Clear everything from the cursor to the beginning of the line |
x/z | Transfer the current process to the background, use "fg" command to restore |
This concludes this article! Continue to the next part!
If it helps you, please pick points praise or appreciation ! Pay attention to this column and share more dry goods with you.
=======================================================
Welcome [ Follow, Private Message @武三郎] . We communicate and progress together.