xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

2016 最新 centOS Linux 命令学习笔记 All In One

2016 最新 centOS Linux 命令学习笔记 All In One

vi / vim

命令模式(Command mode):vi
插入模式(Insert mode):i
底线命令模式(Last line mode):esc + :wq

Linux 命令

man 查看
ctrl+L 清屏
ls 列出文件
ls -a 列出所有文件
pwd 查看当前所在目录
cat xxx 查看xxx文件的内容

ls

$ ls -lath

shutdown

$ man shutdown
shutdown [OPTIONS...][TIME][WALL]
可选参数列表:命令参数,时间,给已经登陆的user发送的shutdown信息

shutdown -now === shutdown +0
shutdown --help 打印一个简短的帮助信息并退出!
shutdown -H 挂起机器
shutdown -P或--poweroff 关机(默认)
shutdown -r 重启机器
shutdown -h 等价于关机,除非halt已经执行
shutdown -c 取消
shutdown -k 不挂起/关机/重启,仅仅等待wall信息
shutdown --no-wall 在挂起/关机/重启前,不发送wall信息

demos

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2016-01-20 21:56  xgqfrms  阅读(22)  评论(0编辑  收藏  举报