In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces what are the shutdown and restart commands in Linux, including examples of what the shutdown and restart commands are in Linux, application skills, summary of basic knowledge points and matters needing attention. It has a certain reference value, and friends who need it can refer to it.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Explain the shutdown and restart commands in Linux in detail
One shutdown command
Shutdown [option] time
Options:
-c: cancel the previous shutdown command-h: shutdown-r: restart
Two shutdown actual combat
[root@localhost tmp] # dateSat Jul 15 09:28:35 CST 2017 [root@localhost tmp] # shutdown-r 05:30Shutdown scheduled for Sun 2017-07-16 05:30:00 CST, use 'shutdown-c' to cancel. [root@localhost tmp] # shutdown-r 05:30 & [1] 4936 [root@localhost tmp] # Shutdown scheduled for Sun 2017-07-16 05:30:00 CST, use 'shutdown-c' to cancel. Broadcast message from root@localhost.localdomain (Sat 2017-07-15 09:30:00 CST): The system is going down for reboot at Sun 2017-07-16 05:30:00 CST! ^ C [1] + Done shutdown-r 05:30 [root@localhost tmp] # shutdown-c Broadcast message from root@localhost.localdomain (Sat 2017-07-15 09:31:03 CST): The system shutdown has been cancelled at Sat 2017-07-15 09:32:03 CST!
Three other shutdown commands
Haltinit 0poweroff
Four other restart commands
Rebootinit 6
Fifth, system operation level
View the running level of the system and modify the default level of the system
Runlevelcat / etc/inittab
Seven logout
Logout
Eight actual combat
[root@localhost tmp] # [root@localhost tmp] # runlevelN 5 [root@localhost tmp] # init 3PolicyKit daemon disconnected from the bus.We are no longer a registered authentication agent. [root@localhost tmp] # runlevel5 3 [root@localhost tmp] # logout this is the end of this article on what the shutdown and restart commands in Linux are. For more related content, please search the previous articles or continue to browse the relevant articles below. I hope you will support it in the future!
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.