走进Linux系统

Windows下开机启动的程序为服务

Linux下开机启动的为守护进程

用户登录的三种方式:

  • 命令行登录
  • SSH登录
  • 图形界面登录

关机

sync # 将数据由内存同步到硬盘中

shutdown # 关机指令

man shutdown # 使用 man 手册查看shutdown指令

# -h 代表 halt 关机
# -r 代表 reboot 重启

shutdown -h 10 # 10分钟后关机

shutdown -h now

shutdown -h 22:00

shutdown -r 10

shutdown -r now

shutdown -r 10

reboot #重启 等同于 shutdown -r now

halt #重启 等同于 shutdown -r halt

系统目录结构

  • 一切皆文件
  • 根目录为/,所有的文件都挂载在这个节点下
ls / # / 为根目录
ls ~ # 这个目录不是根目录,而是/root目录

树状目录结构:

posted @ 2020-10-13 22:12  LongSL  阅读(91)  评论(0)    收藏  举报