千家信息网

Linux基础命令man和reboot的使用

发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,本篇内容介绍了"Linux基础命令man和reboot的使用"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有
千家信息网最后更新 2026年11月02日Linux基础命令man和reboot的使用

本篇内容介绍了"Linux基础命令man和reboot的使用"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

Linux基本命令:
who查看当前user
ps aux (我经常多一个'-',有一行错误信息)
netstat (具体man or info to CC)
shutdown reboot关机命令
shutdown语法:
/sbin/shutdown[-t秒][-arkhncfF时间][警告信息]
eg:
/sbin/shutdown -h 10 'Server will be shutdowned after 10 mins'

man下的参数:
OPTIONS
◆-r Requests that the system be rebooted after it has been brought down.
◆-h Requeststhatthesystembe either halted or powered off after it has been brought down, with the choice as to which left up to the system.
◆-H Requests that the system be halted after it has been brought down.
◆-P Requests that the system be powered off after it has been brought down.
◆-c Cancels a running shutdown.TIME is not specified with this option,the first argument is MESSAGE.
◆-k Onlysendoutthe warning messages and disable logins, do not actually bring the system down.

eg:
shutdown -h now/0
shutdown -h 10:00 /*10点关机
shutdown -h +1010mins后关机
shutdown -r now (reboot at once)
shutdown -r +30 'System will reboot in 30mins'
shutdown -k 'System will reboot'(发送警告信息)

reboot命令
shutdown -r now几乎与reboot相同,关机之前输入回填指令:
sync;sync;sync;reboot
fsck - check and repair a Linux file system

fsck /dev/hda7:
To clear the wrong disk block of /dev/hda7 (单人单机模式root)

"Linux基础命令man和reboot的使用"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!

命令 信息 基础 内容 更多 知识 实用 相同 学有所成 接下来 一行 单机 参数 困境 实际 情况 指令 文章 时间 案例 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 美国互联网保险保险科技 互联网最新的科技 科技企业和互联网企业 港股互联网科技股 广州凡科互联网科技 科技类的互联网平台 富国互联网科技创新基金 成都玖崟互联网科技有限公司乐商圈怎么样 深圳前海聚择互联网科技有限公司 科技与互联网哪个更好 受益于互联网科技的高速发展 浙南科技城互联网大厦建设工程 迪庆互联网科技招生 乌鲁木齐新华智原互联网科技学校 领航科技大厦互联网公司 上海同邻互联网科技有限公司规模 珠海东科互联网科技有限公司 艺电能源互联网科技有限公司招聘 中国互联网公司的科技投入 互联网 科技节活动 微视频大赛 互联网金融科技平台 万达互联网科技 科技赋能互联网健康 中国科技互联网公司收入 成都互联网科技公司100强 互联网在线教育科技创业 无锡工业互联网科技有限公司 美国互联网科技实力 互联网硬科技公司 深圳互联网科技园地址
0