linux入门(基础命令篇)

持续更新中…(业余抽出时间学习)
Makefile学习:http://c.biancheng.net/view/7094.html

系统关机指令

正确的关机流程为:sync > shutdown > reboot > halt

  • sync 将数据由内存同步到硬盘中。
  • shutdown –h now 立马关机
  • shutdown –h 11:25 系统会在今天20:25关机
  • shutdown –h +10 十分钟后关机
  • shutdown –r now 系统立马重启
  • shutdown –r +10 系统十分钟后重启
  • reboot 就是重启,等同于 shutdown –r now
  • halt 关闭系统,等同于shutdown –h now 和 poweroff
文件相关指令
  • ls -l 显示一个文件的属性以及文件所属的用户和组
[root@www /]# ls -l
total 64
dr-xr-xr-x   2 root root 4096 Dec 14  2012 bin
dr-xr-xr-x   4 root root 4096 Apr 19  2012 boot

在Linux中第一个字符代表这个文件是目录、文件或链接文件等等。
在这里插入图片描述

  • chgrp:更改文件属组

chgrp [-R] 属组名 文件名

  • chmod:更改文件9个属性

chmod 777 /share

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值