Linux ³£ÓÃϵͳ¹ÜÀíµÄÃüÁî
¹Ø¼ü´Ê£º Linux ϵͳ¹ÜÀí
1¡¢²é¿´Ä³ÎļþµÄÒ»²¿·Ö
Èç¹ûÄãÖ»Ïë¿´ÎļþµÄÇ° 5 ÐУ¬¿ÉÒÔʹÓà head ÃüÁ
È磺head -5 /etc/passwd
Èç¹ûÄãÏë²é¿´ÎļþµÄºó 10 ÐУ¬¿ÉÒÔʹÓà tail ÃüÁ
È磺tail -10 /etc/passwd
²é¿´ÎļþÖмäÒ»¶Î£¬¿ÉÒÔʹÓà sed ÃüÁî
Èç:sed –n '5,10p' /etc/passwd ÕâÑùÄã¾Í¿ÉÒÔÖ»²é¿´ÎļþµÄµÚ 5 Ðе½µÚ 10 ÐÐ
2¡¢½« file.txt ÀïµÄ123¸ÄΪ 456
·½·¨ 1
sed 's/123/456/g' file.txt > file.txt.new Ð޸ĵı£´æµ½ÆäËüÎļþ
sed -i 's/123/456/g' file.txt Ö±½ÓÐÞ¸ÄÔÎļþ
·½·¨ 2
vi file.txt
ÊäÈëÃüÁ
:%s/123/456/g
×¢Ò⣺Èç¹ûÌæ»»µÄÎļþÓÐÌØÊâ·ûºÅÈç/¾ÍÒªÓÃ\À´È¡Ïû¡£
Àý£ºsed -i 's/\/usr\/local\/apache2\/htdocs/\/var\/www\/html/g' /usr/local/apache2/conf/httpd.conf
Èç¹ûÖ»ÊÇÏÂÔÓеÄÐкóÌí¼Ó¾ÍÓÃ&
Àý£ºsed -i 's/DirectoryIndex index.html index.html.var/& index.htm index.php /g' /usr/local/apache2/conf/httpd.conf
3¡¢echo µäÐÍÓ¦ÓÃ
echo "abcdefg" | perl -lne '{$a = reverse($_); print $a;}' °ÑÒ»¸ö×Ö·û´®·×ª
echo bottle|rev °ÑÒ»¸ö×Ö·û´®·×ª
[ÎļþĿ¼¹ÜÀí]
1¡¢É¾³ý¼¸ÌìÒÔÇ°µÄËùÓж«Î÷(°üÀ¨Ä¿Â¼ÃûºÍĿ¼ÖеÄÎļþ£©
1) find . -ctime +3 -exec rm -rf {} \;
2) find ./ -mtime +3 -print|xargs rm -f –r
2¡¢Ôڶ༶Ŀ¼ÖвéÕÒij¸öÎļþµÄ·½·¨
1) find /dir -name filename.ext
2) du -a | grep filename.ext
3) locate filename.ext
3¡¢É¾³ýÈíÓ²Á¬½Ó×¢Òâµã
ɾ³ýÈí¼þÁ¬½ÓµÄʱºòÒ»¶¨Òª¼ÇµÃ²»ÒªÔÚɾ³ýµÄÎļþ¼Ðºó¼Óһб¸Ü,
rm -f filename/
»á˵ÕâÊÇÒ»¸öÎļþ¼Ð²»ÄÜɾ³ý
rm filename
»áÌáʾ˵ÊÇ·ñҪɾ³ýÕâ¸öÁ¬½Ó¡£
Èç¹ûÓõĵÚÒ»ÖÖ¿ÉÄÜ»á°ÑÆäËüÎļþ¶¼É¾³ý
4¡¢É¾³ýĿ¼Öк¬ÊäÈë¹Ø¼ü×ÖµÄÎļþ
find /mnt/ebook/ -type f -exec grep "ÔÚ´ËÊäÈë¹Ø¼ü×Ö" {} \; -print -exec rm {} \;
5¡¢ÔÚµ±Ç°Ä¿Â¼Ï½âѹ rpm Îļþ
cat kernel-ntfs-2.4.20-8.i686.rpm | rpm2cpio | pax –r
6¡¢ÓÃÃüÁîÇå¿Õ Root »ØÊÕÕ¾ÖеÄÎļþ
cd /var/.Trash-
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
ÏÂÔØntfs-3g
http://www.ntfs-3g.org/
ntfs-3gÒÀÀµFUSE£¨Filesystem in Userspace£©
ÏÈ´¦ÀíÒÀÀµ
ÏÂÔØFUSE
http://fuse.sourceforge.net/
±àÒëFUSE
> ./configure
> make
> make install
±àÒëntfs-3g
vi ½âѹºóµÄĿ¼/src/secaudit.c
²éÕÒ#include <attr/xattr.h>
Ì滻Ϊ#include <l ......
½øÈëlinuxÔ´´úÂëĿ¼£¬»á¿´µ½Èô¸É×ÓĿ¼ºÍÎļþ¡£ÏÖ´ú²Ù×÷ϵͳһ°ãÓɽø³Ì¹ÜÀí£¬ÄÚ´æ¹ÜÀí£¬Îļþϵͳ£¬Çý¶¯³ÌÐòºÍÍøÂçÐÒéÕ»×é³É¡£
arch : °üº¬ÁËËùÓкÍÌåϵ½á¹¹Ïà¹ØµÄºËÐÄ´úÂë¡£ËüÏÂÃæµÄÿ¸ö×ÓĿ¼´ú±íÒ»ÖÖlinuxÖ§³ÖµÄÌåϵ½á¹¹¡£ÈçarmĿ¼¾ÍÊÇÓëARMÌåϵ½á¹¹¼æÈݵÄCPUµÄ×ÓĿ¼£»/arch/i386ÔòÊÇintel CPU¼°Æä¼æÈÝ ......
QTÊÇÄ¿Ç°ÔÚLinux²Ù×÷ϵͳƽ̨ÏÂÓ¦ÓÃ×î¶àµÄͼÐÎÓû§½çÃæµÄµ×²ã¿â£¬ÓÉÆäÅÉÉú³öµÄQT/Embedded´óÁ¿ÓÃÓÚǶÈëʽϵͳ¿ª·¢ºÍÑÐÖÆÖС£Êµ¼ÊÉÏ£¬QT/EmbeddedÌṩ¸øÓû§µÄ·ÇASCIIÂëµÄ×Ö¿âÒ»°ã±È½ÏÉÙ£¬ÔÚÎÒÃÇ¿ª·¢¹ý³ÌÖÐÓõÄǶÈëʽLinuxϵͳÖÐÖÐÎĺÍÈÕÎĵÄ×ֿⶼֻÓÐÒ»¸ö(²»Ë㲻ͬµÄÐýת½Ç)£¬ÆäÖл¹´æÔÚ×ÖÌå´óС²»Ò»ÑùµÄÎÊÌ⣬Òò´ËÔÚʵ¼Ê¿ ......