Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxµÄµÚÒ»¸ö½ø³Ì£ºinit£¨1£©


Òý×Ô£ºhttp://server.it168.com/a2009/0309/267/000000267918.shtml
4.1.7 LinuxµÄµÚÒ»¸ö½ø³Ì£ºinit£¨1£©
initÊÇLinuxϵͳִÐеĵÚÒ»¸ö½ø³Ì£¬½ø³ÌIDΪ1£¬ÊÇϵͳËùÓнø³ÌµÄÆðµã£¬Ö÷ÒªÓÃÀ´Ö´ÐÐһЩ¿ª»ú³õʼ»¯½Å±¾ºÍ¼àÊÓ½ø³Ì¡£LinuxϵͳÔÚÍê³ÉÄÚºËÒýµ¼ÒÔºó¾Í¿ªÊ¼ÔËÐÐinit³ÌÐò£¬init³ÌÐòÐèÒª¶ÁÈ¡ÅäÖÃÎļþ/etc/inittab¡£inittabÊÇÒ»¸ö²»¿ÉÖ´ÐеÄÎı¾Îļþ£¬ËüÓÉÈô¸ÉÐÐÃüÁî×é³É¡£ÔÚRHEL4ϵͳÖУ¬inittabÅäÖÃÎļþµÄÄÚÈÝÈçÏÂËùʾ¡£
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg,
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
//±íʾµ±Ç°Ä¬ÈÏÔËÐм¶±ðΪ5£¬Æô¶¯ÏµÍ³½øÈëͼÐλ¯½çÃæ
id:5:initdefault:
//Æô¶¯Ê±×Ô¶¯Ö´ÐÐ/etc/rc.d/rc.sysinit½Å±¾
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
//µ±ÔËÐм¶±ðΪ5ʱ£¬ÒÔ5Ϊ²ÎÊýÔËÐÐ/etc/rc.d/rc½Å±¾£¬init½«µÈ´ýÆä·µ»Ø
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
//ÔÚÆô¶¯¹ý³ÌÖÐÔÊÐí°´[Ctrl+Alt+Del]ÖØÆôϵͳ
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâÆª·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´Ë×ªÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨ÕâÆª²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

Ò»µÀlinux±ÊÊÔÌâÄ¿


ÊÇqqȺÀïÈËÎʵģ¬ÎÒ¾Í˳±ãдһÏÂÁË¡£
shell±à³Ì£ºÐ´ÃüÁîkilltty,ÕÒ³öϵͳÖÐËùÓÐÔËÐÐÔÚÖ¸¶¨tty£¨Èç/dev/tty01£©ÉϵĽø³Ì£¬²¢È«²¿É±ËÀ
#!/bin/bash
ps -ef | grep tty | grep -v "grep tty" | awk '{print $2}' |sed '/PID/d' > ttyfile
while read LINE
do
kill -9 $LINE
done < ttyfile
²»¹ýttyÊ ......

Linux µÄÔªµ©´óÀñ°ü£ºZorin OS 2.0






<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
        ×ß½ø
Linux
´ó¹ÛÔ°£¬ÈËÃǾÍÏñÁõÀÑÀѽø³Ç£¬É¶¶¼¸Ðµ½ºÜÐÂÏÊ¡£½ñÄêÔªµ©£¬
Linux
¹ú¼ÊÉçÇø¸øÈËÃÇÏ×ÉÏÒ»·ÝÔªµ©´óÀñ°ü£º
Zorin
OS 2.0
¡£ÕâÓÐʲôºÃ˵µÄ£¿
 
  & ......

ÐÂÊÖ¿´ÕРʵÓõÄUbuntu LinuxÃüÁî´óÈ«

1 Îļþ¹ÜÀí # ls ls -a Áгöµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ.Í·µÄÒþº¬Îļþ
Îļþ¹ÜÀí # ls ls -l»òll Áгöµ±Ç°Ä¿Â¼ÏÂÎļþµÄÏêϸÐÅÏ¢
Îļþ¹ÜÀí # pwd pwd ²é¿´µ±Ç°ËùÔÚĿ¼µÄ¾ø¶Ô·¾­
Îļþ¹ÜÀí # cd cd .. »Øµ±Ç°Ä¿Â¼µÄÉÏÒ»¼¶Ä¿Â¼
Îļþ¹ÜÀí # cd cd - »ØÉÏÒ»´ÎËùÔÚµÄĿ¼
Îļþ¹ÜÀí # cd cd ~ »ò cd »Øµ±Ç°Óû§µÄËÞÖ÷Ŀ¼
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ