Linux command line for you and me Documentation Release 0.1
the systemd units in the system? Working with a particular service Enabling or disabling a service Shutdown or reboot the system using systemctl journalctl Finding the logs of a service To view only the last ogin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin wants/sshd.service. Shutdown or reboot the system using systemctl We can also reboot or shutdown the system using the systemctl command. $ sudo systemctl reboot $ sudo systemctl shutdown journalctl systemd0 码力 | 124 页 | 510.85 KB | 1 年前3Linux command line for you and me Documentation Release 0.1
disabling a service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 8.9 Shutdown or reboot the system using systemctl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 ogin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/sbin/nologin wants/sshd.service. 8.9 Shutdown or reboot the system using systemctl We can also reboot or shutdown the system using the systemctl command. $ sudo systemctl reboot $ sudo systemctl shutdown 8.10 journalctl0 码力 | 128 页 | 716.99 KB | 1 年前3Linux Lab v1.3 Manual
exceeded while waiting headers . . . . . . . . . . . 54 6.1.7 Restart Linux Lab after host system shutdown or reboot . . . . . . 55 6.1.8 the following directives are specified both as a flag and in the Linux linux-lab 5.1.0 #3 SMP Thu May 30 08:44:37 UTC 2019 armv7l GNU/Linux 7 # 8 # poweroff 9 # Shutdown the board with the poweroff command. **Notes*: If some boards not support poweroff, please press aliyuncs.com/ 54 欢迎加入 Linux Lab 用户组,联系微信:tinylab,公众号:泰晓科技 6.1.7 Restart Linux Lab after host system shutdown or reboot If want to restore the installed softwares and related configurations, please save the0 码力 | 66 页 | 1.12 MB | 1 年前3Linux Lab v1.2 Manual
exceeded while waiting headers . . . . . . . . . . . 54 6.1.7 Restart Linux Lab after host system shutdown or reboot . . . . . . 55 6.1.8 the following directives are specified both as a flag and in the Linux linux-lab 5.1.0 #3 SMP Thu May 30 08:44:37 UTC 2019 armv7l GNU/Linux 7 # 8 # poweroff 9 # Shutdown the board with the poweroff command. **Notes*: If some boards not support poweroff, please press Registry Mirrors: 3 https://XXXXX.mirror.aliyuncs.com/ 6.1.7 Restart Linux Lab after host system shutdown or reboot If want to restore the installed softwares and related configurations, please save the0 码力 | 67 页 | 1.13 MB | 1 年前3Linux Lab v1.1 Manual
exceeded while waiting headers . . . . . . . . . . . 52 6.1.7 Restart Linux Lab after host system shutdown or reboot . . . . . . 53 6.1.8 the following directives are specified both as a flag and in the Linux linux-lab 5.1.0 #3 SMP Thu May 30 08:44:37 UTC 2019 armv7l GNU/Linux 7 # 8 # poweroff 9 # Shutdown the board with the poweroff command. **Notes*: If some boards not support poweroff, please press Registry Mirrors: 3 https://XXXXX.mirror.aliyuncs.com/ 6.1.7 Restart Linux Lab after host system shutdown or reboot If want to restore the installed softwares and related configurations, please save the0 码力 | 65 页 | 1.12 MB | 1 年前3This Debian Reference (version 2.109)
prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.8 How to shutdown the system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 SMTP/POP3 tunneling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.3.8 How to shutdown the remote system on SSH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6 1.8 How to shutdown the system Just like any other modern OS where the file operation involves caching data in memory for improved performance, the Debian system needs the proper shutdown procedure before0 码力 | 266 页 | 1.25 MB | 1 年前3CentOS 7 操作命令-基础篇1.2
poweroff 立即关机 init 0 立即关机 shutdown -h now 立即关机 shutdown -h +5 5 分钟后关机 halt 停机 shutdown -H now 停机 reboot 立即重启 init 6 立即重启 shutdown -r now 立即重启 shutdown -r +3 3 分钟后重启 shutdown -c 取消 关机或重启 exit 仅退出登录的会话,系统并没有关闭0 码力 | 115 页 | 8.68 MB | 1 年前3Moxa Industrial Linux 3.0 (Debian 11) Manual for Arm-based Computers Version 1.0, January 2023
powered off, although an internal clock may retain battery power. You can use the Linux command shutdown to close all software running on the device and halt the system. However, main components such devices will continue to be powered after you run this command. moxa@moxa-tbzkb1090923: ~# sudo shutdown -h now Moxa Industrial Linux 3.0 (Debian 11) Manual for Arm-based Computers 17 3. Device Service that loads an on-disk random seed into the kernel entropy pool during boot and saves it at shutdown Moxa Industrial Linux 3.0 (Debian 11) Manual for Arm-based Computers 76 Service Name0 码力 | 111 页 | 2.94 MB | 1 年前3鸟哥的Linux 私房菜
使用者一些时间来结束他们的工作,所以, 这个时候你可以使用 shutdown 的特别指令来达到此一功能。 • 正确的关机指令使用:例如 shutdown 与 reboot 两个指令! 所以底下我们就来谈一谈关于这个关机的正确指令用法啰! • 将数据同步写入硬盘中的指令: sync • 最正确的关机指令: shutdown • 重新开机: reboot • 关机啰: halt sync • shutdown 好了,由于关机有种种的限制因子在,所以只有 root 有权力关机而已喔!嗯!那么就来关机试 试看吧!我们较常使用的是 shutdown 这个指令,而这个指令会通知系统内的各个行程 ( processes ),并且将通知系统中的 run-level 内的一些服务来关闭之( run-level 会在后面告知喔 )。 shutdown 可以达成: • 是明白的告诉使用者某段时间要注意一下!这个时候可以使用 shutdown 来吓一吓使用者, 但却不是真的要关机啦! • 可以选择是否要 fsck 检查档案系统 。 那么 shutdown 的语法是如何呢?聪明的读者大概已经开始找『男人』了!没错,随时随地的 man 一下,是很不错的举动!好了,简单的语法规则为: [root@test root]# /sbin/shutdown [-t 秒] [-arkhncfF]0 码力 | 386 页 | 11.69 MB | 1 年前3鸟哥的 Linux 私房菜:基础学习篇 第四版
mandb/makewhatis 4.3.3 info page 4.3.4 其他有用的文件(documents) 4.4 超简单文书编辑器: nano 4.5 正确的关机方法: sync, shutdown, reboot, halt, poweroff, systemctl 4.6 重点回顾 4.7 本章习题 4.8 参考资料与延伸阅读 第二部分 Linux 文件、目录与磁盘格式 安装完了 要关机前总得给线上的使用者一些时间来结束他们的工 作,所以,这个时候你可以使用 shutdown 的特别指令来达到此一功能。 正确的关机指令使用: 例如 shutdown 与 reboot 两个指令! 所以下面我们就来谈一谈几个与关机/重新开机相关的指令啰! 将数据同步写入硬盘中的指令: sync 惯用的关机指令: shutdown 重新开机,关机: reboot, halt, poweroff Tips Tips 由于Linux系统的关机/重新开机是很重大的系统运行,因此只有root才能够进行例如 shutdown, reboot等指令。 不过在某些distributions当中,例如我们这里谈到的CentOS系统, 他允许你在本机前的tty1~tty7当中(无论是文字界面或图形界面), 可以用一般帐号来关机 或重新开机!但某些distributions则在你要关机时,他会要你输入root的密码呢!^_^0 码力 | 1158 页 | 13.73 MB | 1 年前3
共 92 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10