In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the use of Linux basic commands for logout, shutdown and restart". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First, log out, shut down and restart
Log out of the system's logout command
1Logout logout is a relative operation of login. To leave the system after logging in, the user only needs to issue the logout command directly:
[root@localhost root] # logout
Red Hat Linuxrelease 9 (Shike)
Kernel 2.4.20.8 on an i686
Login: ← returns to the login screen.
2, shutdown command for shutdown or restart
The Shutdown command closes all programs and restarts or shuts down according to the user's needs.
The parameters are described as follows:
Immediate shutdown: the-h parameter causes the system to shut down immediately. Examples are as follows:
[root@localhost root] # shutdown-h now ← requires the system to shut down immediately
L specify shutdown time: the time parameter can specify the shutdown time, or run the shutdown command after setting the time, as shown in the following example:
[root@localhost root] # shutdown now ← shuts down immediately
[root@localhost root] # shutdown + 5 ← shuts down after 5 minutes
[root@localhost root] # shutdown 10:30 ← shuts down at 10: 30
Auto restart after shutdown: restart after shutdown set by-r parameter. Examples are as follows:
[root@localhost root] # shutdown-r now ← shut down the system and restart immediately
[root@localhost root] # shutdown-r 23:59 ← specifies to restart at 23: 59
3, restart the computer's reboot command
As the name implies, the reboot command is used to restart the system. The common parameters are as follows:
L-f parameters: instead of shutting down the computer according to the normal program, shut down the system and restart the computer.
L-I parameter: shut down all network interfaces before rebooting.
Although the reboot command has a parameter that can be used, you usually only need to run the reboot command separately.
This is the end of the introduction of "the use of Linux basic commands for logout, shutdown and restart". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.