1. Introduction to Common Commands
There are many commands in the Linux system that can help us accomplish different tasks. Here, we will introduce some commonly used basic commands that can assist us in performing corresponding basic operations. As we continue learning, we will encounter more Linux commands that can help us complete various tasks. Let’s take a look at these basic commands.
1. Power Management Commands
sync: Synchronizes the data in the buffer to the disk(It needs to be executed before shutting down or rebooting to avoid data loss)In the Linux system, when data needs to be stored on the disk, it is usually first placed in the buffer and written to the disk at an appropriate time, which improves system execution efficiency.shutdown Shuts down the system safely. All logged-in users will see a shutdown notification, and logins are prohibited. –k Does not actually shut down, only displays a warning message to everyone. For example: shutdown –k +5 –r Reboots. Default delay is one minute. For example: shutdown –r +3