linux常用命令汇编(持续更新)
一、用户提示符
# root账号提示符
$ 普通用户提示符
二、关闭计算机
shutdown(安全有序地关闭计算机)
语法:shutdown [options] [time] [message]
shutdown -h now#立即关机(--halt/终止)
shutdown -r now#重新启动(--reboot/重启)
shutdown -h +10#指定具体关闭时间(分钟)
shutdown -h 22:30#指定具体关闭时间
shutdown -t 300#指定具体关闭时间(秒)
shutdown -c#取消关机命令(cancel)
shutdown -r +60 "The system will reboot in 1 hour"#60分钟后重启并发布通知
shutdown -n +10#不调用系统的init程序或类似的系统管理工具来执行关机序列
shutdown -f now#强制关闭(--force)
三、改变目录
cd(change directory)
cd ~ #默认目录
cd . #当前目录
cd .. #上级目录
cd / #根目录
pwd#打印当前目录(Print Working Directory)
原文地址:https://blog.csdn.net/qq_41072756/article/details/142675470
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!