Linux»ù±¾Ö¸Áî
Linux»ù±¾Ö¸Áî
alias
ÌæÖ¸ÁîÈ¡±ðÃû
¡ò alias ÁгöĿǰϵͳËùʹÓõÄËùÓÐÖ¸Áî±ðÃû
¡ò alias ±ðÃû=Linux Ö¸ÁîÃû³Æ ´ËʱÈôÊäÈ롸±ðÃû¡¹Ôò¹¦ÄÜ»á¸úÊäÈ롸Linux Ö¸ÁîÃû³Æ¡¹Ïàͬ
¡ò ÈôÏëҪÿ´Î¿ª»ú¶¼Ê¹Óô˱ðÃû£¬ÔÚ bash ÖУ¬Ò»¶¨ÒªÔÚ .bashrc ÖÐÖ¸¶¨£¬Èç¹ûÊÇ tcsh ÖУ¬ÔòÒªÔÚ .cshrc ÖÐÖ¸¶¨
ar
½«Ðí¶àµµ°¸±¸´æ³ÉÒ»¸ö»ò¶à¸öµµ°¸
¡ò ar -rcv ±¸´æµµÃû Óû±¸´æµµÃû1 Óû±¸´æµµÃû2 ...
½«¡¸Óû±¸´æµµÃû1 Óû±¸´æµµÃû2 ...¡¹¼°ËùÓÐÄúÖ¸¶¨µÄµµ°¸£¬±¸´æÖÁ¡¸±¸´æÅÌÃû¡¹ÖС£
²ÎÊý -r£ºÔÚмÓÈë×é³ÉµµÊ±£¬¼ì²é±¸´æµµ°¸ÖеÄ×é³Éµ³£¬Èç¹ûÖظ´µÄ»°£¬¾ÍÈ¡¶ø´úÖ®¡£
²ÎÊý -c£º½¨Á¢±¸´æµµ°¸¡£
²ÎÊý -v£ºÏÔʾÏêϸÐÅÏ¢¡£
¡ò ar -t ±¸´æµµÃû Áгö¡¸±¸´æµµÃû¡¹ÖÐÖ®ÎļþÃû
¡ò ar -x ±¸´æÅÌÃû È¡³ö¡¸±¸´æÅÌÃû¡¹ÖÐËùÓеµ°¸
¡ò ar -x ±¸´æÅÌÃû ±¸´æÅÌÖеµ°¸Ö®µµÃû È¡³ö¡¸±¸´æÅÌÃû¡¹ÖÐijЩµµ°¸
bg
½«³ÌÐòÖÃÓÚ±³¾°Ö´ÐÐ
Èç¹ûÄúÖ´ÐеijÌÐòºÜ¶àµÄ»°£¬¿ÉÒÔÔÚÖ´ÐгÌÐòʱ£¬°´Ï¡¸Ctrl + z¡¹ÔÝÍ£³ÌÐò£¬
È»ºóÀûÓÃÖ¸Ájobs¡¹²éѯ¸Ã¹¤×÷Ö®±àºÅ
¡ò bg ¹¤×÷±àºÅ ½«¡¸¹¤×÷±àºÅ¡¹Ö®¹¤×÷ÖÃÓÚ±³¾°Ö´ÐÐ
¡ò fg ¹¤×÷±àºÅ ½«¡¸¹¤×÷±àºÅ¡¹Ö®¹¤×÷ÖÃÓÚÇ°¾°Ö´ÐÐ
bc
¼òÒ×¼ÆËãÆ÷
¡ò quit À뿪 bc
clear
Çå¿Õ»Ãæ
ÈôÊÇÄúÏÓ»Ã涫Î÷Ì«¶à¡¢Ì«ÔÓÁË£¬²»·ÁÊÔÊÔÕâ¸öÖ¸Áî
cmp
ÁгöÁ½¸öµµ°¸µÄÎÄ×ÖÄÚÈݵÚÒ»¸öÏàÒì´¦
¡ò cmp 檔Ãû1 檔Ãû2 ÈôÊäÈë´ËÖ¸Á¼ÆËã»ú»á½«¡¸ÎļþÃû1¡¢檔Ãû2¡¹ÖеÚÒ»¸ö×Ö·ûÏàÒì´¦´òÓ¡³öÀ´
cp
¸´ÖƵµ°¸
¡ò cp 檔Ãû1 檔Ãû2 ¸´ÖÆ¡¸檔Ãû1¡¹ÖÁ¡¸檔Ãû2¡¹£¬Èô¡¸檔Ãû2¡¹Ô±¾¾Í´æÔÚ£¬½«»á±»¸²¸Ç
¡ò cp -r Îļþ¼ÐÃû1 Îļþ¼ÐÃû2 ¸´ÖÆ¡¸Îļþ¼ÐÃû1¡¹ÖÁ¡¸Îļþ¼ÐÃû2¡¹
df
¼ìÊÓ¼ÆËã»úÓ²ÅÌ֮ʹÓÃÇéÐÎ
¡ò df -h ÒÔÈËÀà½ÏÒ×ÔĶÁµÄ·½Ê½ÁгöÊý¾Ý
diff
±È½ÏÁ½¸öµµ°¸µÄÎÄ×ÖÄÚÈÝÓкβ»Í¬´¦
¡ò diff 檔Ãû1 檔Ãû2 ÈôÊäÈë´ËÖ¸Á¼ÆËã»ú»á½«¡¸ÎļþÃû1¡¢檔Ãû2¡¹ÖÐÓÐ×Ö·ûÏàÒìµÄÄÇÐдòÓ¡³öÀ´
du
È¡µÃÎļþ¼Ð´óС
¡ò du Îļþ¼Ð·¾¶ È¡µÃ¸Ã¡¸Îļþ¼Ð·¾¶¡¹ÖÐËùÓÐĿ¼ (°üº¬ÆäÏÂ×ÓĿ¼) µÄÎļþ¼Ð´óС
¡ò du -s Îļþ¼Ð·¾¶ È¡µÃ¸Ã¡¸Îļþ¼Ð·¾¶¡¹µÄÎļþ¼Ð´óС (²»°üº¬×ÓĿ¼)
¡ò du -h Îļþ¼Ð·¾¶ ÒÔÈËÀà½ÏÒ×ÔĶÁµÄ·½Ê½ÏÔʾ¸Ã¡¸Îļþ¼Ð·¾¶¡¹µÄÎļþ¼Ð´óС (²»°üº¬×ÓĿ¼)
fg
½«³ÌÐòÖÃÓÚÇ°¾°Ö´ÐÐ
Ïà¶ÔÓÚÖ¸Ábg¡¹£¬´ËÖ¸ÁîÓÃÀ´½«³ÌÐòÖÃÓÚÇ°¾°Ö´ÐÐ
¿ÉÀûÓÃÖ¸Ájobs¡¹²éѯ¸Ã¹¤×÷Ö®±àºÅ¡£
¡ò fg ¹¤×÷±àºÅ ½«¡¸¹¤×÷±àºÅ¡¹Ö®¹
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
linux—selectÏê½â
selectϵͳµ÷ÓÃʱÓÃÀ´ÈÃÎÒÃǵijÌÐò¼àÊÓ¶à¸öÎļþ¾ä±úµÄ״̬±ä»¯µÄ¡£³ÌÐò»áÍ£ÔÚselectÕâÀïµÈ´ý£¬Ö±µ½±»¼àÊÓµÄÎļþ¾ä±úÓÐÒ»¸ö»ò¶à¸ö·¢ÉúÁË״̬¸Ä±ä¡£
¹ØÓÚÎļþ¾ä±ú£¬Æäʵ¾ÍÊÇÒ»¸öÕûÊý£¬Í¨¹ýsocketº¯ÊýµÄÉùÃ÷¾ÍÃ÷°×ÁË£º
int socket(int domain, int type, int protocol);
ÎÒÃÇ×îÊìϤµÄ¾ä±úÊÇ0¡¢1¡¢2 ......
Linux initial RAM disk (initrd) overview
Learn about its anatomy, creation, and use in the Linux boot process
M. Tim Jones
(mtj@mtjones.com
), Consultant Engineer, Emulex
M. Tim Jones is an embedded software architect and the author of GNU/Linux Application Programming
, AI Application Prog ......
LinuxϵͳԽÀ´Ô½Êܵ½µçÄÔÓû§µÄ»¶Ó£¬ÓÚÊǺܶàÈË¿ªÊ¼Ñ§Ï°Linuxʱ£¬Ôںܶàʱºò£¬ÎÒÃÇÐèÒª½«ÔÚLinux×ÀÃæÉϵIJÙ×÷¹ý³Ì¼ÖÆÏÂÀ´£¬±ÈÈçÖÆ×÷ÆÁÄ»
ÑÝʾ¡¢ÊÓƵ½ÌѧµÈ¡£ÕâÀォ½éÉÜÔÚLinux×ÀÃæÏÂÖµµÃʹÓõÄ5¸öÆÁĻ¼ÏñÈí¼þ£¬°üÀ¨Istanbul¡¢Wink¡¢Xvidcap¡¢Vnc2swf¡¢
Recordmydesktop£¬Ï£Íû¶ÔÓдËÐèÇóµÄÅóÓÑÌṩ²Î¿¼¡£
¡¡¡¡Istanbul ......