ºìÁªLinuxÃÅ»§
Linux°ïÖú

³õѧÕßɨä linuxÎļþȨÏÞÉèÖÃ

·¢²¼Ê±¼ä:2013-08-26 14:05:24À´Ô´:ºìÁª×÷Õß:zhqs425
ÎļþµÄÈý¸ö×î»ù±¾µÄȨÏÞÊǶÁдִÐÐ

r£¬¶Á£¬¿ÉÒÔ¶ÁÈ¡Îļþ£¬¶ÔĿ¼À´Ëµ¿ÉÒÔÁгöĿ¼µÄÎļþÁбí 4

w,д£¬¿ÉÒÔÐÞ¸Äɾ³ýÎļþ£¬¶ÔĿ¼À´Ëµ¿ÉÒÔ´´½¨É¾³ýÎļþ 2

x,Ö´ÐУ¬¿ÉÒÔÖ´ÐÐÎļþ£¬¶ÔĿ¼À´Ëµ¿ÉÒÔcd½øÈëĿ¼ 1

×¢Òâµã:Ŀ¼ÉÏÖ»ÓÐÖ´ÐÐȨÏÞ£¬Ôò¿ÉÒÔ½øÈë»òÕß´©Ô½´ËÎļþ¼Ð£¬µ«ÊÇÒª·ÃÎÊ´ËÎļþ¼ÐÏÂÓжÁȡȨÏÞµÄÎļþ£¬Ôò±ØÐëÊäÈëÎļþÃû£¬Ö»ÓÐÖ´ÐÐȨÏÞµÄÎļþ¼Ð£¬²»ÄÜÁгöĿ¼£¬Ò²²»ÄÜɾ³ýĿ¼

ÌØÊâ룬SUID,SGID,stickt-bit룬Èç¹ûÉèÖÃÁËSUIDµÄ¿ÉÖ´ÐÐÎļþ±»Ö´Ðеģ¬Îļþ½«ÒÔËùÓÐÕßµÄÉí·ÝÀ´ÔËÐС£SGID,Òâ˼ͬSUID£¬sticky-bit룬¾¡¹ÜÆäËûÓû§ÓÐдȨÏÞ£¬µ«ÊDZØÐëÓÉÊôÖ÷Ö´ÐÐɾ³ýºÍÒƶ¯²Ù×÷¡£×ÓĿ¼ҲֻÓÐÊôÖ÷¿ÉÒÔ²Ù×÷¡£


ȨÏÞÉèÖÃÃüÁî

chmod,-R,µÝ¹é£¬s±íʾSUID»òÕßSGID£¬t±íʾstick-bit,

chown,¸Ä±äÓû§ÊôÖ÷ºÍ×飬-RµÝ¹é£¬¼Ó:ÔòÊǸıä×飬²»¼ÓÊǸıäÓû§£¬

umask,ÉèÖÃÎļþĬÈÏÉú³É±àÂ룬¾ÍÊÇ´´½¨Ò»¸öÐÂÎļþµÄʱºòµÄĬÈÏȨÏÞ£¬-S²é¿´Ä¬ÈÏȨÏÞ¡£


find,²éÕÒÎļþ£¬<ÆðʼĿ¼><Ñ¡Ïî±í´ïʽ><Ìõ¼þÆ¥Åä±í´ïʽ><¶¯×÷±í´ïʽ>

Ñ¡Ïî±í´ïʽ,-follow£¬Óöµ½·ûºÅÁ´½ÓÔò¸ú×Ù·ûºÅÁ´½Ó¡£-regextypeÖ¸¶¨-regexºÍ-iregexʹÓõÄÕýÔò±í´ïʽµÄÀàÐÍ£¬-depth,²éÕÒ×ÓĿ¼֮ǰÏȲéÕÒÍ굱ǰĿ¼£¬-mount£¬²»¿çÔ½Îļþϵͳ£¬-xdev,ͬ-mount,-maxdepth£¬×î´óÉî¶È²éѯ£¬

Ìõ¼þÆ¥Åä±í´ïʽ,-name Æ¥ÅäÎļþÃû -inameÆ¥ÅäÎļþÃû²»Çø·Ö´óСд£¬ -lnameÆ¥Åä·ûºÅÁ´½ÓÎļþÃû£¬ -ilnameÆ¥Åä·ûºÅÁ´½ÓÎļþÃû²»Çø·Ö´óСд£¬-path·¾¶£¬-regex£¬ÕýÔòÆ¥Å䣬-iregex£¬ÕýÔòÆ¥Å䣬²»Çø·Ö´óСд£¬-amin N²éÕÒN·ÖÖÓ֮ǰ±»·ÃÎʹýµÄËùÓÐÎļþ£¬-atime N ²éÕÒNÌì֮ǰ±»·ÃÎʵÄÎļþ£¬-cmin,ºÍ-ctimeÊÇÎļþ״̬±»Ð޸ĹýµÄ(±ÈÈçȨÏÞ)£¬-mminºÍ-mtimeÊÇÎļþÄÚÈݱ»Ð޸ĹýµÄ£¬-uid N²éÕÒuidÊÇNµÄÎļþ£¬-gid£¬²éÕÒgidÊÇNµÄËùÓеÄÎļþ£¬-inum,²éÕÒi-nodeÊÇNµÄÎļþ£¬-links N£¬²éÕÒÓ²Á´½ÓΪNµÄÎļþ£¬-size N[bcwkMG]°´ÕÕ´óС²éÕÒ£¬-perm MODE°´ÕÕȨÏÞ²éÕÒ£¬ -perm -MODE£¬°´ÕÕ×îµÍȨÏÞ²éÕÒ£¬ -anewer file£¬²éÕÒ±Èfile·ÃÎÊʱ¼äеÄÎļþ£¬ -cnewer²éÕÒ±ÈfuleеÄÐÞ¸Äʱ¼äµÄÎļþ£¬ -newer file²éÕÒ±ÈfileеÄÄÚÈÝÐ޸ĹýµÄÎļþ£¬ -fstypeÖ¸¶¨ÀàÐ͵ÄÎļþϵͳ£¬-typeÖ¸¶¨ÎļþÀàÐÍ£¬-emptyÄÚÈÝΪ¿Õ£¬-user NAME£¬°´ÕÕÓû§²éÕÒ£¬-group°´ÕÕ×é²éÕÒ£¬-nouser£¬Îļþ²»ÊôÓÚ/etc/passwdÖеÄÓû§,-nogroup,Îļþ²»ÊôÓÚ/etc/groupÖеÄ×é

¶¯×÷±í´ïʽ£¬-print£¬Ã¿ÐÐÒ»¸öÎļþ£¬-print0È¡Ïû¼ä¸ô·û¡£


grep [options] PATTERN [FIFL...]ËùÓÐÎı¾ÄÚÈÝ£¬°ÑÆ¥ÅäµÄÐдòÓ¡³öÀ´£¬-cÖ»ÏÔʾƥÅäµÄ´ÎÊý£¬-iËÑË÷ʱ²»Çø·Ö´óСд£¬-nÆ¥ÅäÐеÄÐкţ¬-vÊä³ö²»Æ¥ÅäµÄÐУ¬-AͬʱÏÔʾƥÅäµ½µÄÐкóÃæµÄNÐУ¬-BÆ¥ÅäÊä³öÐÐÇ°Ã漸ÐУ¬-CÆ¥ÅäÊä³öÐÐÇ°ºó¸÷¼¸ÐУ¬
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 8 ÌõÆÀÂÛ

  1. hj5700 ÓÚ 2013-08-31 13:49:14·¢±í:

    ѧϰ£¬Ñ§Ï°

  2. lizhiyong ÓÚ 2013-08-31 12:16:27·¢±í:

    ÕæµÄ²»´í

  3. lcc291811083 ÓÚ 2013-08-28 16:45:58·¢±í:

    ¶¥¶¥¶¥¶¥

  4. 410378266@qq.co ÓÚ 2013-08-28 09:07:53·¢±í:

    ÏÈÇÀ¸öɳ·¢

  5. ventism ÓÚ 2013-08-27 22:32:38·¢±í:

    ÕæµÄ²»´í£¬

  6. SnowStorm ÓÚ 2013-08-27 12:05:13·¢±í:

    ѧϰÀ²£¡

  7. fengmayi1 ÓÚ 2013-08-27 08:52:45·¢±í:

    ѧϰһÏÂ

  8. jiangchaoplh ÓÚ 2013-08-26 22:47:50·¢±í:

    ²»´í,ллÁË.