LinuxÏ´´½¨Êý¾Ý¿â±í£¨sqlite3£©µÄ½Å±¾
±¾ÎÄÒÔÊý¾Ý¿âÖеÄÊý¾Ý±íUserInfoΪʵÀýչʾÊý¾Ý¿â±íµÄ´´½¨¼°Êý¾Ý¼Ç¼µÄ¼Èë¡£
#!/bin/sh
#variables definition
#database location
db=/conf/db
#
#create table userInfo
#name: User name
#passwd: Password
#Privilege: User privilege -- Administrator:0 Operator:1
#
echo "create table UserInfo(name varchar(30) not null primary key, passwd varchar(8) not null, privilege int not null);" \
| /usr/local/bin/sqlite3 $db
echo "insert into UserInfo values('admin', 'access', 0);" | /usr/local/bin/sqlite3 $db
echo "insert into UserInfo values('user', 'access', 1);" | /usr/local/bin/sqlite3 $db
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
£¨1£©Óû§Ä£Ê½USB
usbfsÐéÄâÎļþϵͳÔÊÐí´ÓÓû§¿Õ¼äÒÔÔʼ·½Ê½·ÃÎÊUSBÉ豸¡£usbfsͨ³£¹ÒÔØÔÚ/proc/bus/usb/ÉÏ£¬usbfsÊ÷°üº¬ÁËϵͳÖÐÓëÿ¸öUSB¿ØÖÆÆ÷£¨»ò×ÜÏߣ©¶ÔÓ¦µÄĿ¼£¬Ã¿¸öĿ¼ÒÀ´Î°üº¬ÁËÓë¸Ã×ÜÏßÉϵÄUSBÉ豸Ïà¶ÔÓ¦µÄ½áµã¡£
ΪÁ˸üºÃµØÀí½âusbfs£¬ÎÒà ......
Ò»¡¢Ð½¨²¢³õʼ»¯°æ±¾¿â
1.н¨´úÂë²Ö¿â
# svnadmin create /home/myrepos
ÕâÑù£¬ÎÒÃǾÍÔÚ/homeĿ¼ÏÂн¨Á˰汾¿âmyrepos¡£
2.³õʼ»¯´úÂë²Ö¿â
#mkdir -p code/{branches,tags,trunk}
°´ÕÕsvnÊÖ²áÉϵĽ¨Ò飬ÎÒÃǰ汾¿âµÄ²¼¾Ö²ÉÓÃbranches/tags/trunkÕâÑùµÄÈý¸öĿ¼¡£
È»ºó¿ÉÒÔ½«´úÂëÖ±½Ó¿½±´µÄtrunkĿ¼£¬Ò²¿ÉÒÔËæºó ......
Ê×ÏÈ£¬Ó¦ÓóÌÐòÊÇÎÞ·¨Ö±½Ó·ÃÎÊÄ£¿éÖеĺ¯ÊýµÄ£¨¼´Ê¹ÊÇÄã×Ô±à×Ô¹ÒµÄÄ£¿é££Êµ¼ÊÉÏËüÒ²ÊÇÄÚºËÄ£¿é£©£¬Óû§¿Õ¼äÓëÄں˿ռäÖ®¼äÖ»ÓÐͨ¹ýÒ»Ð©ÌØ¶¨µÄϵͳº¯ÊýÀ´½øÐÐͨѶ£¨Èçʲôuser_to_kernel£©£¬¶ø¾ø¶Ô²»¿ÉÄÜͨ¹ý“Ö±½Óµ÷ÓÃÄ£¿éÀïµÄº¯Êý”ÕâÖÖÐÎʽÀ´Í¨Ñ¶¡£
ÄÇô£¬Ëù±àдµÄÄ£¿éÀïµÄº¯ÊýÔõô²ÅÄܱ»Ö´ÐУ¿ÓÉ˵÷Óã¿Æä ......
ZZ ×Ôhttp://dev.firnow.com/course/6_system/linux/Linuxjs/200896/139627.html
.tar
¡¡¡¡½â°ü£º tar xvf FileName.tar
¡¡¡¡´ò°ü£ºtar cvf FileName.tar DirName
¡¡
¡¡£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
¡¡¡¡---------------------------------------------
......