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

LINUX Ö¸Áî

 
ln
[root@www ~]# ln [-sf] 來Ô´檔 Ä¿標檔
選項與參數£º
-s £ºÈç¹û²»¼ÓÈκÎ參數¾Í進ÐÐ連結£¬ÄǾÍÊÇhard link£¬ÖÁì¶ -s ¾ÍÊÇsymbolic link
-f £ºÈç¹û Ä¿標檔 ´æÔÚ時£¬¾ÍÖ÷動µÄ將Ä¿標檔Ö±½ÓÒƳýááÔÙ½¨Á¢£¡
範ÀýÒ»£º將 /etc/passwd 複製µ½ /tmp µ×Ï£¬並ÇÒ觀²ì inode 與 block
[root@www ~]# cd /tmp
[root@www tmp]# cp -a /etc/passwd .
[root@www tmp]# du -sb ; df -i .
18340
. <==ÏÈ×¢ÒâÒ»ÏÂ這裡µÄÈÝÁ¿ÊǶàÉÙ£¡
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hdc2 2560864 149738
2411126 6% /
# ÀûÓà du 與 df 來檢²éÒ»ÏÂÄ¿Ç°µÄ參數¡«ÄÇ個 du -sb
# ÊÇ計ËãÕû個 /tmp µ×ÏÂÓжàÉÙ bytes µÄÈÝÁ¿À²£¡
範Àý¶þ£º將 /tmp/passwd 製×÷ hard link ³É為 passwd-hd 檔°¸£¬並觀²ì檔°¸與ÈÝÁ¿
[root@www tmp]# ln passwd passwd-hd
[root@www tmp]# du -sb ; df -i .
18340
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hdc2 2560864 149738
2411126 6% /
# ×Ð細¿´£¬¼´Ê¹¶àÁËÒ»個檔°¸ÔÚ /tmp µ×Ï£¬Õû個 inode 與 block µÄÈÝÁ¿並沒ÓиÄ變£¡
[root@www tmp]# ls -il passwd*
586361
-rw-r--r-- 2
root root 1945 Sep 29 02:21 passwd
586361
-rw-r--r-- 2
root root 1945 Sep 29 02:21 passwd-hd
# Ô­來ÊÇÖ¸Ïòͬһ個 inode °¡£¡這ÊÇ個ÖØ點°¡£¡ÁíÍ⣬ÄÇ個µÚ¶þ欄µÄ連結數Ò²會Ôö¼Ó£¡
範ÀýÈý£º將 /tmp/passwd ½¨Á¢Ò»個·û號連結
[root@www tmp]# ln -s passwd passwd-so
[root@www tmp]# ls -li passwd*
586361 -rw-r--r-- 2 root root 1945 Sep 29 02:21 passwd
586361 -rw-r--r-- 2 root root 1945 Sep 29 02:21 passwd-hd
586401
lrwxrwxrwx 1 root root 6
Oct 22 14:18 passwd-so -> passwd
# passwd-so Ö¸ÏòµÄ inode number ²»Í¬ÁË£¡Ű


Ïà¹ØÎĵµ£º

linux Çл»µ½ root Óû§ [suÃüÁsudoÃüÁî]

 su -l ĬÈÏΪrootÓû§
Ò²¿Éд×÷ su root -l
»»×öÆäËû¼´ÎªÊ¹ÓÃÆäËûÓû§µÇ¼
´ÓrootÓû§Çл»µ½ÆäËûÓû§²»ÐèÒªÊäÈë¿ÚÁî
ÔÚÆäËûÕË»§¼äÇ뻶¼ÒªÊäÈë¿ÚÁî
ʹÓà sudo ¼ÓÉÏËùÒªÖ´ÐеÄÃüÁî¿ÉÒÔʹµÃÓû§µÄȨÏÞÁÙʱÇл»µ½³¬¼¶¹ÜÀíÔ±µÄ״̬Ï£¬¼´ÁÙʱÇл»ÁËÓû§¡£
Ò»°ãÐèÒªÊäÈë¿ÚÁʹÓúóÔÚÒ»¶Îʱ¼ä´ÁÄÚ²»ÐèÊäÈë¿ÚÁî¡£ ......

linuxģʽÇл»µÈ

 Ê×ÏȽéÉÜÒ»¸öÃû´Ê“¿ØÖÆ̨£¨console£©”£¬Ëü¾ÍÊÇÎÒÃÇͨ³£¼ûµ½µÄʹÓÃ×Ö·û²Ù×÷½çÃæµÄÈË»ú½Ó¿Ú£¬ÀýÈçdos¡£ÎÒÃÇ˵¿ØÖÆ̨ÃüÁ¾ÍÊÇָͨ¹ý×Ö·û½çÃæÊäÈëµÄ¿ÉÒÔ²Ù×÷ϵͳµÄÃüÁÀýÈçdosÃüÁî¾ÍÊÇ¿ØÖÆ̨ÃüÁî¡£ÎÒÃÇÏÖÔÚÒªÁ˽âµÄÊÇ»ùÓÚLinux²Ù×÷ϵͳµÄ»ù±¾¿ØÖÆ̨ÃüÁî¡£ÓÐÒ»µãÒ»¶¨Òª×¢Ò⣬ºÍdosÃüÁͬµÄÊÇ£¬LinuxµÄÃü ......

[LinuxÏà¹Ø»ù´¡¼¼Êõѧϰ

 ¡¾Ïà¹Ø²©ÎÄתÔØ/ÍøÖ·Á´½Ó¡¿------------------------
Ò»¡¢linuxÍøÂç±à³Ì----epoll
¢Ùlinux epoll¼¼Êõ½éÉÜ http://woxihuanpes.blog.163.com/blog/static/12423219820099301048160/[woxihuanpes µÄ²©¿Í]
¢Úepoll http://baike.baidu.com/view/1385104.htm?fr=ala0 [°Ù¶È°Ù¿Æ]
¢ÛepollʹÓÃÀý×Ó£ºhttp://blog.csdn.n ......

£Ûת£Ý¹¹Ôì c++ IDE(linux)

±¾ÎÄת×Ô£ºhttp://www.cnblogs.com/blueoceanli/archive/2009/04/27/1444491.html
(ÐÞ¸Ä~/.vimrc,ûÓд´½¨Ö®)
set encoding=utf-8
syntax enable
syntax on
filetype on
set tabstop=4
set softtabstop=4
set shiftwidth=4
set cindent
set autoindent
filetype plugin indent on
1.Alternate (http://www.vim ......

LinuxÏÂApache°²×°/Ôö¼Ómod_rewriteÄ£¿é

 ¡¡Èç¹ûÄãµÄ·þÎñÆ÷apache»¹Ã»Óа²×°£¬ÄǺܼòµ¥£¬ÔÚ±àÒëapacheʱ½«mod_rewriteÄ£¿é±àÒë½øÈ¥¾Í¿ÉÒÔ£¬Ïà¹ØÎĵµ¿ÉÒÔÔÚhttp://man.ddvip.com/soft/apache2.2/misc/rewriteguide.html
ÖÐÕÒµ½¡£Èç¹ûÄãµÄapacheÒѾ­°²×°ºÃÁË£¬ÏÖÔÚÖ»Ïë±àÒë³ömod_rewrite.soÄ£¿é£¬ÔÚapacheÖнøÐмÓÔØ£¬ÏÂÃæÎÒÃǾͽéÉÜÕâ¸ö·½·¨¡£
¡¡¡¡ÒÔFedora² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ