Linux³£ÓÃÃûÁî 1Îļþ²Ù×÷ÃüÁî
1. ls£ºÁгöÎļþÁбí
¸ñʽ£º ls option£¬option¿ÉÒÔÊÇ£º -a ÁгöÒþ²ØÎļþ£¬-l ÁгöÎļþÏêϸÐÅÏ¢
2. pwd£º²é¿´µ±Ç°Ä¿Â¼
3. mkdir£º ´´½¨Ä¿Â¼
4. touch£º ´´½¨Îļþ
5. cd£º Çл»Ä¿Â¼
6. cp£º ¿½±´Îļþ/Ŀ¼
¸ñʽ£º cp srcfile desfile
7. mv: Òƶ¯Îļþ/Ŀ¼
¸ñʽ: mv srcfile desfile
8.rmdir£º ɾ³ýĿ¼
9.rm£º ɾ³ýÎļþ
10.chmod£º ¸Ä±äÎļþȨÏÞ
¸ñʽ: chmod user+permission file
userµÄȡֵΪ£º a(È«²¿Óû§)¡¢Óû§¡¢×é
permissionµÄÈ¡Öµ£º x(Ö´ÐÐȨ)¡¢w(дȨ)¡¢r(¶ÁȨ)
11.chown£º ¸Ä±äÎļþÊôÖ÷
¸ñʽ£º chown option user file£¬ option£º -R±íʾµÝ¹é
12.chgrp£º ¸Ä±äÎļþÊô×é
¸ñʽ£º chgrp option usergrup file£¬ oprion£º -R±íʾµÝ¹é
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃ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 ......
ÔÚLinuxϱàдDaemon
ÔÚLinux£¨ÒÔRedhat Linux Enterprise Edition 5.3ΪÀý£©Ï£¬ÓÐʱÐèÒª±àдService¡£ServiceÒ²ÊdzÌÐò£¬Ò»°ãËæϵͳÆô¶¯Óû§²»¸ÉÔ¤¾Í²»Í˳öµÄ³ÌÐò£¬¿ÉÒÔ³ÆΪService¡£LinuxϵÄServiceÒ»°ã³ÆΪDaemon¡£
ÒÔÉÏÊǹãÒåµÄServiceµÄ¶¨Òå¡£LinuxϵķþÎñÒ»°ã·ÅÔÚ/etc/init.dÎļþ¼ÐÏ¡£ä¯ÀÀÒ»ÏÂÕ ......
/
¸ùĿ¼
/bin
³£ÓõÄÃüÁî
binary
file µÄĿ¼
/boot
´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ
(kernel)
ÔÚÄÚ
/boot/grub/menu.lst
GRUBÉèÖÃ
/boot/ ......
ÔÚQTÖпÉÒÔÖ±½ÓʹÓÃQTextCodecÀ´×ª»»×Ö·û´®µÄ±àÂë¡£
ÀýÈ磬ÎÒÃÇÏëÔÚ³ÌÐòÖÐʹÓÃÖÐÎÄ£¬ÀàËÆtr£¨“飬ÄãºÃÂ𣿔£©¡£ÎÒÃÇÒªÔÚmainº¯ÊýÖÐÔö¼ÓÒÔϼ¸ÌõÓï¾ä£¬ÖØÐÂÉèÖÃÒ»ÏÂĬÈϵıàÂëÆ÷¡£
Ïȵ÷ÓÃÏÂÃæÁ½¸öº¯ÊýÖ®Ò»
QTextCodec *codec=QTextCodec::codecForName(”gbk”);
QTextCodec *codec=QTextCodec ......
Socket ¾ÍÊÇÌ×½Ó×Ö¡£
Socket ¿ÉÒԺͱ¾µØĿ¼°ó¶¨£¬Ò²¿ÉÒÔºÍÒ»¸öIPµØÖ·°ó¶¨¡£
int socketpair(sa_family, socket_type, protocal, int sz[2]);
sa_family: AF_LOCAL( ºÍ AF_UNIXÒ»Ñù) ±íʾ±¾µØµÄsocket Á¬½Ó
A ......