易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux下常用的关机实例

Linux下关机最要有以下方法,我想这些方法足以满足你的需要:
[root@localhost /]# shutdown [-t秒] [-arkhcncfF] [时间] [提示信息]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t 后加秒数,即‘过几秒钟后关机’的意思。
-k : 不要真的关机,只是发送提示信息。
-r : 在将系统的服务关掉之后就重新启动。
-h : 在将系统的服务关掉之后就关机。
-n : 不要进过init程序,直接以shutdown关机。
-f : 关机并启动后,强制略过fsck的磁盘检查
-F : 系统重新启动后,强制进行fsck的磁盘检查
-c : 取消已经在进行的shutdown命令符
立即关机
[root@localhost /]#shutdown -h now
系统在今天的20:25关机
[root@localhost /]#shutdown -h 20:25
系统再过10分钟后重新启动
[root@localhost /]#shutdown -h +10
系统立即重新启动
[root@localhost /]#shutdown -r now
再过30分钟系统会重新启动,并显示后面的信息
[root@localhost /]#shutdown -r +30 'The system will reboot'
仅仅发出警告信息,系统并不会关机
[root@localhost /]#shutdown -r +30 'The system will reboot' 


相关文档:

linux 0.11 内核学习 fcntl.c


/*
 *  linux/fs/fcntl.c
 *
 *  (C) 1991  Linus Torvalds
 */
#include <string.h>
#include <errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <asm/segment.h>
#include <fcntl.h>
#include <sys/stat. ......

Linux文件查找命令find (两篇文章)

Linux文件查找命令find,xargs详述
一、find 命令格式
1、find命令的一般形式为;
 find pathname -options [-print -exec -ok ...]
2、find命令的参数;
pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。
-print: find命令将匹配的文件输出到标准输出。
-exec: find命令对 ......

linux下磁盘操作命令

查看系统的磁盘信息:
fdisk -l
[root@localhost home]# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 979 7759395 ......

linux学习指南针


linux学习指南针(学习方法谈之二)
指南针, linux, 学习
一.为什么要学linux?
当然最重要是爱好和兴趣!如果你这种必要学,或者根本不喜欢,请不要浪费时间,你学也学不好!
二.起步
你应该为自己创造一个学习linux的环境--在电脑上装一个linux或unix
问题1:版本的选择
北美用redhat,欧洲用SuSE,桌面mandrake ......

Linux下文件查找实例

花了一个周末的时间列出来的。共享出来,希望大家花几分钟看看。这也算是LINUX下比较实用的查找方式了
which(寻找“执行文件”)
[root@localhost home]# which [-a] command
-a : 将所有可找到的命令均列出,而不仅仅列出第一个找到的命令名称
范例:
[root@localhost home]# which passwd
/usr/bin/passwd ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号