鸟哥的linux笔记第五章

1. 如果你知道一个命令的一部分,和命令的作用,想找到命令该怎么办

man -k   关键字

2. ls -a -l -d 的作用
   -a   all
         -l    lenth 长模式,显示一些属性信息
   -d  directory      显示目录的信息

3. makewhatis 
      生成whatis 数据库
4.  whatis 的作用
  查询某个命令的作用
5. 如何更新whatis 数据库

6. 更改系统时间
   date   月月日日时时分分[年年]年年.秒秒
   [root@lq etc]# date 011011392013
2013年 01月 10日 星期四 11:39:00 CST
[root@lq etc]# date
2013年 01月 10日 星期四 11:39:08 CST
[root@lq etc]# clock
2013年01月10日 星期四 11时38分55秒  -0.017144 seconds

据理解,date应该是系统时间而clock应该是指硬件时间即bios时间


7. 更改系统时间和bios一致,更改bios时间和系统一致
  hwclock --systohc  系统时间覆盖bios时间
      hwclock --hctosys bios时间覆盖系统时间 
 
8. sync的作用
   将缓存里的内容写入到硬盘中去

9. shutdown 中-t参数的作用,比如shutdown -h +10 -t 100表示什么意思
   -t的作用表示延迟多少秒来执行一个关机操作, 在100秒后执行shutdown -h +10的操作,即在100秒后执行 过10分钟关机


10. 系统在十分钟后关机、重启的命令分别是什么
   shutdown -h +10 
         shutdown -r +10

你可能感兴趣的:(鸟哥的linux)