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

Linux关机命令

1 shutdown:
[NAME
]  shutdown - bring the system down
SYNOPSIS
       /sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]
DESCRIPTION
       shutdown  brings  the  system  down  in a secure way.  All logged-in users are notified that the system is going down, and login(1) is blocked.  It is possible to shut the system down immediately or after a specified delay.   All  processes  are first  notified  that the system is going down by the signal SIGTERM.  This gives programs like vi(1) the time to save the file being edited, mail and news processing programs a chance to exit cleanly, etc.  shutdown does its job  by  signalling  the  init  process, asking it to change the runlevel.  Runlevel 0 is used to halt the system, runlevel 6 is used to reboot the system, and runlevel 1 is used to put to system into a state where administrative tasks can be performed; this is  the
       default  if  neither  the  -h  or  -r flag is given to shutdown.  To see which actions are taken on halt or reboot see the
       appropriate entries for these runlevels in the file /etc/inittab.
OPTIONS
       -a     Use /etc/shutdown.allow.
       -t sec Tell init(8) to wait sec seconds between sending processes the warning and the  kill  signal,  before  changing  to
              another runlevel.
       -k     Do not really shutdown; only send the warning messages to everybody.
       -r     Reboot after shutdown.
    &n


相关文档:

linux移植开发简单步骤

http://blog.csdn.net/linucos/archive/2010/01/22/5223615.aspx
Linux
移植开发
准备工作:
准备
交叉编译工具链:这里我们选择DENX软件工程提供的ELDK交叉编译环境,参考地址:http://ftp.denx.de/pub/eldk/4.2/

我们使用其中的一套工具。准备工作步骤如下:
1. 建立工作文件夹NewMsg2410,并建立子目录sources ......

Linux 的字符串截取

Linux 的字符串截取很有用。有八种方法。
假设有变量 var=http://www.hao.com/123.htm
一 # 号截取,删除左边字符,保留右边字符。
echo ${var#*//}
其中 var 是变量名,# 号是运算符,*// 表示从左边开始删除第一个 // 号及左边的所有字符
即删除 http://
结果是 :www.hao.com/123.htm
二 ## 号截取,删除左边字符 ......

Linux下GetModuleFileName的四种写法

Linux下GetModuleFileName的四种写法
  问题的起因是要把一个东东从Windows移植到基于Linux的嵌入式系统上。移植过程中,遇到了GetModuleFileName的问
题。为了解决这个问题,花了不少的时间,也走了不少弯路。下面是整理的结果。
  首先摘录一段文字,来源《UNIX Programming FAQ 中文版》
 
1.14. 我怎样找 ......

linux 设置固定IP


一、使用命令设置ubuntu的ip地址
1.修改配置文件blacklist.conf禁用IPV6:
sudo vi /etc/modprobe.d/blacklist.conf
2.在文档最后添加 blacklist ipv6,然后查看修改结果:
cat /etc/modprobe.d/blacklist.conf
3.设置IP(设置网卡eth0的IP地址和子网掩码)
sudo ifconfig eth0 192.168.2.1 netmask 255.255.255.0 ......

Linux Webcam and TV【Linux 摄像头 和 电视】

 HowTo WebCam On Linux
Five fun ways to use a Linux webcam
http://www.linux.com/archive/articles/126186
The Webcam HOWTO
http://tldp.org/HOWTO/html_single/Webcam-HOWTO/
WebCam under Linux
http://www.seismo.ethz.ch/linux/webcam.html
‘Webcams in Linux, Part 1
http://www.linuxplanet. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号