linuxµÄchmodÓëchownÃüÁîÏê½â
inuxµÄchmodÃüÁîʹÓÃÏê½â
ʹÓ÷½Ê½ : chmod [-cfvR] [--help] [--version] mode file...
˵Ã÷ : Linux/Unix µÄµµ°¸´æȡȨÏÞ·ÖΪÈý¼¶ : µµ°¸ÓµÓÐÕß¡¢Èº×é¡¢ÆäËû¡£ÀûÓà chmod ¿ÉÒÔ½åÒÔ¿ØÖƵµ°¸ÈçºÎ±»ËûÈËËù´æÈ¡¡£
mode : ȨÏÞÉ趨×Ö´®£¬¸ñʽÈçÏ : [ugoa...][[+-=][rwxX]...][,...]£¬ÆäÖÐu ±íʾ¸Ãµµ°¸µÄÓµÓÐÕߣ¬g ±íʾÓë¸Ãµµ°¸µÄÓµÓÐÕßÊôÓÚͬһ¸öȺÌå(group)Õߣ¬o ±íʾÆäËûÒÔÍâµÄÈË£¬a ±íʾÕâÈýÕß½ÔÊÇ¡£
+ ±íʾÔö¼ÓȨÏÞ¡¢- ±íʾȡÏûȨÏÞ¡¢= ±íʾΨһÉ趨ȨÏÞ¡£
r ±íʾ¿É¶ÁÈ¡£¬w ±íʾ¿ÉдÈ룬x ±íʾ¿ÉÖ´ÐУ¬X ±íʾֻÓе±¸Ãµµ°¸ÊǸö×ÓĿ¼»òÕ߸õµ°¸ÒѾ±»É趨¹ýΪ¿ÉÖ´ÐС£
-c : Èô¸Ãµµ°¸È¨ÏÞȷʵÒѾ¸ü¸Ä£¬²ÅÏÔʾÆä¸ü¸Ä¶¯×÷
-f : Èô¸Ãµµ°¸È¨ÏÞÎÞ·¨±»¸ü¸ÄÒ²²»ÒªÏÔʾ´íÎóѶϢ
-v : ÏÔʾȨÏÞ±ä¸üµÄÏêϸ×ÊÁÏ
-R : ¶ÔĿǰĿ¼ÏµÄËùÓеµ°¸Óë×ÓĿ¼½øÐÐÏàͬµÄȨÏÞ±ä¸ü(¼´ÒԵݻصķ½Ê½Öð¸ö±ä¸ü)
--help : ÏÔʾ¸¨Öú˵Ã÷
--version : ÏÔʾ°æ±¾
·¶Àý :½«µµ°¸ file1.txt ÉèΪËùÓÐÈ˽ԿɶÁÈ¡ :
chmod ugo+r file1.txt
½«µµ°¸ file1.txt ÉèΪËùÓÐÈ˽ԿɶÁÈ¡ :
chmod a+r file1.txt
½«µµ°¸ file1.txt Óë file2.txt ÉèΪ¸Ãµµ°¸ÓµÓÐÕߣ¬ÓëÆäËùÊôͬһ¸öȺÌåÕß¿ÉдÈ룬µ«ÆäËûÒÔÍâµÄÈËÔò²»¿ÉдÈë :
chmod ug+w,o-w file1.txt file2.txt
½« ex1.py É趨ΪֻÓиõµ°¸ÓµÓÐÕß¿ÉÒÔÖ´ÐÐ :
chmod u+x ex1.py
½«Ä¿Ç°Ä¿Â¼ÏµÄËùÓеµ°¸Óë×ÓĿ¼½ÔÉèΪÈκÎÈ˿ɶÁÈ¡ :
chmod -R a+r *
´ËÍâchmodÒ²¿ÉÒÔÓÃÊý×ÖÀ´±íʾȨÏÞÈç chmod 777 file
Ó﷨Ϊ£ºchmod abc file
ÆäÖÐa,b,c¸÷Ϊһ¸öÊý×Ö£¬·Ö±ð±íʾUser¡¢Group¡¢¼°OtherµÄȨÏÞ¡£
r=4£¬w=2£¬x=1
ÈôÒªrwxÊôÐÔÔò4+2+1=7£»
ÈôÒªrw-ÊôÐÔÔò4+2=6£»
ÈôÒªr-xÊôÐÔÔò4+1=7¡£
·¶Àý£º
chmod a=rwx file
ºÍ
chmod 777 file
Ч¹ûÏàͬ
chmod ug=rwx,o=x file
ºÍ
chmod 771 file
Ч¹ûÏàͬ
ÈôÓÃchmod 4755 filename¿Éʹ´Ë³Ìʽ¾ßÓÐrootµÄȨÏÞ
Ö¸ÁîÃû³Æ : 
Ïà¹ØÎĵµ£º
Õë¶ÔºÃ¶àLinux °®ºÃÕ߶ÔÄں˺ÜÓÐÐËȤȴÎÞ´ÓÏ¿ڣ¬±¾ÎÄÖ¼ÔÚ½éÉÜÒ»ÖÖ½â¶ÁlinuxÄÚºËÔ´ÂëµÄÈëÃÅ·½·¨£¬¶ø²»Êǽâ˵linux¸´ÔÓµÄÄں˻úÖÆ£»
Ò»£®ºËÐÄÔ´³ÌÐòµÄÎļþ×éÖ¯£º
1£®LinuxºËÐÄÔ´³ÌÐòͨ³£¶¼°²×°ÔÚ/usr/src/linuxÏ£¬¶øÇÒËüÓÐÒ»¸ö·Ç³£¼òµ¥µÄ±àºÅÔ¼¶¨£ºÈκÎżÊýµÄºËÐÄ£¨ÀýÈç2.0.30£©¶¼ÊÇÒ»¸öÎȶ¨µØ·¢Ð ......
Ò»¡¢ÏÂÔØQtÔ´Âë°üµ½±¾»ú£¬È»ºó½âѹËõ
1.ÏÂÔØqt-x11-free-3.2.1.tar.gzºÍqt-x11-opensource-src.tar.gz¶þ½øÖÆ°ü¡£
2.ÔÚÖÕ¶ËÇл»ÖÁqt-x11-free-3.2.1.tar.gzËùÔÚĿ¼Ï£¬Ö´ÐУºtar zxvf qt-x11-free-3.2.1.tar.gz -C /usr/local
3.ÒÑͬÑùµÄ·½·¨½«qt-x11-opensource-src-.tar.gzÔ´Âë°ü½âѹËõ µ½/usr/localĿ¼
PS£º£ ......
ÏÖÏó£ºÓÃSSHÈí¼þÁ¬½Óʱ£¬ÖÐÎÄÊÇÂÒÂë
½â¾ö£º
ÐÞ¸Ä/etc/sysconfig/i18nÎļþ£¬½«Æä¸Ä³ÉÒÔÏÂÄÚÈÝ£º
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16" ......
ÈÈÐĵãÆÀ£ºÓ²ÅÌ°²×°fedoraµÄ¹æÔò¾ÍÏñÎÒÃǷdz£ÑÇ¿ËÎ÷µÄÕþ²ßÒ»Ñù£¬ ¸æËßÄã²»ÄÜ·¢ËÍyellow¶ÌÐÅ£¬ µ«¾ÍÊDz»¸æËßÄãyellowµÄ³ß¶ÈÊÇʲô£¬ ÄãÖ»ÄÜð×ÅÊÖ»úÍ£»úµÄΣÏÕ£¬²âÊÔÏÂÄÄЩ¶ÌО¿¾¹Éä»ÆÁË¡£ ͨ¹ý²»ÏÂÁ½Î»ÊýµÄÖØÆô£¬ ÃþË÷ÁËÒ»µãµã¹æÔò¡£ OK, ÎÒÏëLinux²»ÊÇgov, °²×°»¹ÊÇÓйæÔò¿ÉÑԵģ¬Ö»ÊÇÎÒÃÇ»¹Ã»ÓÐÕÒµ½Õâ¸öreadme? ´ï ......