What are the common commands for Linux rookie?

  
                

There are many commands in the Linux system. A large part of the Linux rookie learning Linux system is actually the process of mastering the common commands of Linux. This article will tell you about the common commands used by Linux rookies.

keep the system safe and up to date

Linux is based on safe design, but the fact is that any software that has defects lead to security vulnerabilities. Therefore, it is very important to keep your system up to date. Think of it this way: Running an outdated operating system is like sitting in a fully armed tank, but the door is unlocked. Will weapons protect you? Anyone can enter the open door and cause harm to you. Similarly, there are no patched vulnerabilities in your system that can harm your system. The open source community, unlike the patent world, responds fairly quickly to bug fixes, so if you keep your system up to date, you'll get security.

Keep an eye on news sites and learn about security vulnerabilities. If you find a vulnerability, understand it and then update it as soon as the patch comes out. In any case, in a production environment, you must run the update command at least once a week. If you are running a complex server, you have to be extra careful. Read the change log carefully to make sure the update doesn't break your custom service.

Ubuntu: Keep in mind that you must refresh the repository (that is, repos) before you upgrade your system or install whatever software. On Ubuntu, you can use the following command to update the system, the first command is used to refresh the repository:

1.sudo apt-get update

After the repository is updated, you can now run The system update command:

1.sudo apt-get upgrade

However, this command does not update the kernel and some other packages, so you must also run the following command:

1.sudo apt-get dist-upgrade

openSUSE: If you are on openSUSE, you can use the following command to update the system (as usual, the first command means to update the repository): Br>

1.sudo zypper refresh

2.sudo zypper up

Fedora: If you are on Fedora, you can use the ‘dnf’ command, which is zypper and apt -get ‘like ’:

1.sudo dnf update

2.sudo dnf upgrade Previous1234Next page Total 4 pages

Copyright © Windows knowledge All Rights Reserved