linuxµÄ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µÄȨÏÞ
Ö¸ÁîÃû³Æ : chown
ʹÓÃȨÏÞ : root
ʹÓ÷½Ê½ : chmod [-cfhvR] [--help] [--version] user[:group] file...
˵Ã÷ : Linux/Unix ÊǶàÈ˶๤×÷ҵϵͳ£¬ËùÓеĵµ°¸½ÔÓÐÓµÓÐÕß¡£ÀûÓà chown ¿ÉÒÔ½«µµ°¸µÄÓµÓÐÕß¼ÓÒԸı䡣һ°ãÀ´Ëµ£¬Õâ¸öÖ¸ÁîÖ»ÓÐÊÇÓÉϵͳ¹ÜÀíÕß(root)ËùʹÓã¬Ò»°ãʹÓÃÕßûÓÐȨÏÞ¿ÉÒԸıä±ðÈ˵ĵµ°¸ÓµÓÐÕߣ¬Ò²Ã»ÓÐȨÏÞ¿ÉÒÔ×Ô¼ºµÄµµ°¸ÓµÓÐÕ߸ÄÉèΪ±ðÈË¡£Ö»ÓÐϵͳ¹ÜÀíÕß(root)²ÅÓÐÕâÑùµÄȨÏÞ¡£
°Ñ¼Æ :
user : еĵµ°¸ÓµÓÐÕßµÄʹÓÃÕß IDgroup : еĵµ°¸ÓµÓÐÕßµÄʹÓÃÕßȺÌå(group)-c : Èô¸Ã
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍ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 ......
Ãû³Æ : crontab
¡¡¡¡Ê¹ÓÃȨÏÞ : rootÓû§ºÍcrontabÎļþµÄËùÓÐÕß
¡¡¡¡Óï·¨ :
¡¡¡¡crontab [-e [UserName]|-l [UserName]|-r [UserName]|-v [UserName]|File ]
ÖØÆô£ºsudo /etc/init.d/cron restart
¡¡¡¡ËµÃ÷ :
¡¡¡¡crontab ÊÇÓÃÀ´ÈÃʹÓÃÕßÔڹ̶¨Ê±¼ä»ò¹Ì¶¨¼ä¸ôÖ´ÐгÌʽ֮Ó㬻»¾ä»°Ëµ£ ......
Tar
¡¡¡¡Ó¢ÎÄÔÒ壺Tape ARchive
¡¡¡¡ÖÐÎÄÊÍÒ壺´Å´ø¹éµµ
¡¡¡¡×¢ ½â£ºUNIX/LinuxÖеÄÒ»¸öÎļþ´ò°ü¹¤¾ß£¬ÓÃÓÚ½«Ðí¶àÎļþÒ»Æð´ò°ü£¬ÐγÉÒ»¸öµµ°¸Îļþ£¬ÒÔ±ã¹éµµ¡£Ëü×î³õÉè¼ÆÓÃÓÚ´Å´ø±¸·Ý£¬ÏÖÔÚÒ²¿ÉÓÃÓÚÆäËü´æ´¢½éÖÊ¡£µ¥¶ÀʹÓÃʱ£¬Éú³É¾ßÓÐ.tarÀ©Õ¹ÃûµÄÎļþ¡£µ±ÓëGzip½áºÏÓÃÓÚÊý¾ÝѹËõʱ£¬Éú³ÉµÄÎļþÀ©Õ¹Ãû¿ÉÄÜÊÇ.tgz¡¢.t ......
LR¼à¿Øwindows¡¢linux¡¢UNIX¡¢IBM AIXϵͳ·½·¨
Ò»¡¢¼à¿Øwindowsϵͳ£º
1¡¢¼àÊÓÁ¬½ÓÇ°µÄ×¼±¸¹¤×÷
1£©½øÈë±»¼àÊÓwindowsϵͳ£¬¿ªÆôÒÔ϶þ¸ö·þÎñRemote Procedure Call(RPC) ºÍRemote Registry Service (¿ªÊ¼—)ÔËÐÐ ÖÐÊäÈëservices.msc£¬¿ªÆô¶ÔÓ¦·þÎñ¼´¿É)¡£
&nbs ......
/*****************************************************************************************************
linux_m4v.c
gcc -o linux_m4v linux_m4v.c -lc -lm -lxvidcore
*******************************************************************************************************/
#include <string.h>
# ......