linux»ù´¡ÃüÁî˵Ã÷£ºchown¸Ä±äÎļþËùÓÐÕß
¾ßÌåΪ£ºsudo chown cjfh /CJFH1 ½«/CJFH1µÄÊôÖ÷¸ü¸ÄΪ“cjfh”£¨ÎÒµÄÓû§Ãû£©
ÓÚÊǾͿÉÒÔ¶Ô/CJFH1ÀïµÄÎļþ½øÐвÙ×÷ÁË¡£
Íê³ÉÖ®ºó£¬¾õµÃ×Ô¼º¶ÔÃüÁîµÄÊìϤ³Ì¶È²»¸ß£¬Ðè½øÒ»²½Ñ§Ï°£»
˳±ã½«chownѧÁËһϣº
chown ÃüÁî
ÓÃ; ¸ü¸ÄÓëÎļþ¹ØÁªµÄËùÓÐÕß»ò×é¡£
Óï·¨
chown [ -f ] [ -h ] [ -R ] Owner [ :Group ] { File ... | Directory ... }
chown -R [ -f ] [ -H | -L | -P ] Owner [ :Group ] { File ... | Directory ... }
ÃèÊö
chown
ÃüÁ File ²ÎÊýÖ¸¶¨µÄÎļþµÄËùÓÐÕ߸ü¸ÄΪ Owner ²ÎÊýÖ¸¶¨µÄÓû§¡£Owner ²ÎÊýµÄÖµ¿ÉÒÔÊÇ¿ÉÔÚ /etc/passwd
ÎļþÖÐÕÒµ½µÄÓû§±êʶ»òµÇ¼Ãû¡£»¹¿ÉÒÔÑ¡ÔñÐÔµØÖ¸¶¨×é¡£Group ²ÎÊýµÄÖµ¿ÉÒÔÊÇ¿ÉÔÚ /etc/group ÎļþÖÐÕÒµ½µÄ×é±êʶ»ò×éÃû¡£
Ö»ÓÐ root Óû§¿ÉÒÔ¸ü¸ÄÎļþµÄËùÓÐÕß¡£Ö»ÔÚÄúÊÇ root Óû§»òÓµÓиÃÎļþµÄÇé¿öϲſÉÒÔ¸ü¸ÄÎļþµÄ×é¡£Èç¹ûÓµÓÐÎļþµ«²»ÊÇ root Óû§£¬ÔòÖ»¿ÉÒÔ½«×é¸ü¸ÄΪÄúÊÇÆä³ÉÔ±µÄ×é¡£
ËäÈ» -H¡¢-L ºÍ -P ±êÖ¾ÊÇ»¥³âµÄ£¬Ö¸¶¨²»Ö¹Ò»¸öÒ²²»ÈÏΪÊÇ´íÎó¡£Ö¸¶¨µÄ×îºóÒ»¸ö±ê־ȷ¶¨ÃüÁîÄâ¸å½«ÑÝʾµÄ²Ù×÷¡£
±êÖ¾
-f ½ûÖ¹³ýÓ÷¨ÏûÏ¢Ö®ÍâµÄËùÓдíÎóÏûÏ¢¡£
-h ¸ü¸ÄÓöµ½µÄ·ûºÅÁ´½ÓµÄËùÓÐȨ£¬¶ø·Ç·ûºÅÁ´½ÓÖ¸ÏòµÄÎļþ»òĿ¼µÄËùÓÐȨ¡£
µ±Óöµ½·ûºÅÁ´½Ó¶øÄúδָ¶¨ -h ±ê־ʱ£¬chown ÃüÁî¸ü¸ÄÁ´½ÓÖ¸ÏòµÄÎļþ»òĿ¼µÄËùÓÐȨ£¬¶ø·ÇÁ´½Ó±¾ÉíµÄËùÓÐȨ¡£
Èç¹ûÖ¸¶¨ -R ±êÖ¾£¬chown ÃüÁîµÝ¹éµØ½µÐòÖ¸¶¨µÄĿ¼¡£
-H Èç¹ûÖ¸¶¨ÁË -R Ñ¡Ï²¢ÇÒÒýÓÃÀàÐÍĿ¼µÄÎļþµÄ·ûºÅÁ´½ÓÔÚÃüÁîÐÐÉÏÖ¸¶¨£¬chown ±äÁ¿»á¸ü¸ÄÓÉ·ûºÅÒýÓõÄĿ¼µÄÓû§±êʶ£¨ºÍ×é±êʶ£¬Èç¹ûÒÑÖ¸¶¨£©ºÍËùÓÐÔÚ¸ÃĿ¼ÏµÄÎļþ²ã´Î½á¹¹ÖеÄËùÓÐÎļþ¡£
-L Èç¹ûÖ¸¶¨ÁË -R Ñ¡Ï²¢ÇÒÒýÓÃÀàÐÍĿ¼µÄÎļþµÄ·ûºÅÔÚÃüÁîÐÐÉÏÖ¸¶¨»òÔÚ±éÀúÎļþ²ã´Î½á¹¹ÆÚ¼äÓöµ½£¬chown ÃüÁî»á¸ü¸ÄÓÉ·ûºÅÁ´½ÓÒýÓõÄĿ¼µÄÓû§±êʶ£¨ºÍ×é±êʶ£¬Èç¹ûÒÑÖ¸¶¨£©ºÍÔÚ¸ÃĿ¼֮ϵÄÎļþ²ã´Î½á¹¹ÖеÄËùÓÐÎļþ¡£
-P Èç¹ûÖ¸¶¨ÁË -R Ñ¡Ïî²¢ÇÒ·ûºÅÁ´½ÓÔÚÃüÁîÐÐÉÏÖ¸¶¨»òÕßÔÚ±éÀúÎļþ²ã´Î½á¹¹ÆÚ¼äÓöµ½£¬ÔòÈç¹ûϵͳ֧³Ö¸Ã²Ù×÷£¬Ôò chown ÃüÁî»á¸ü¸Ä·ûºÅÁ´½ÓµÄËùÓÐÕß±êʶ£¨ºÍ×é±êʶ£¬Èç¹ûÒÑÖ¸¶¨£©¡£chown ÃüÁî²»»áÖ´ÐÐÖÁÎļþ²ã´Î½á¹¹µÄÈκÎÆäËü²¿·ÖµÄ·ûºÅÁ´½Ó¡£
-R
µÝ¹éµØ½µÐòĿ¼£¬¸ü¸Äÿ¸öÎļþµÄËùÓÐȨ¡£µ±Óöµ½·ûºÅÁ
Ïà¹ØÎĵµ£º
ÔÚLinuxÉÏ°²×°oracleµÄʱºò²»Ð¡ÐÄ°²×°ÁËÁ½´Îlistener, ¸ãµÃlistenerµÄ¶Ë¿ÚºÅ±ä³ÉÁË1522¶ø²»ÊÇȱʡµÄ1521, ¿Í»§¶ËÁ¬Á˺þö¼Ã»ÓÐÁ¬½ÓÉÏ£¬×îºó²Å·¢ÏÖÊÇlistenerµÄ¶Ë¿ÚºÅ²»¶Ô¡£Ò»ÏÂÊÇÎҸıälistener¶Ë¿ÚºÅµÄ²½Ö裺
1. Ê×ÏÈÐèҪֹͣlistener, ʹÓÃÃüÁîlsnrctl stop
2. listenerÍ£Ö¹ÒԺ󣬵½ÄãµÄ$ORACLE_HOME/network/adminÏÂÕ ......
VimºÍËùÓеÄÁ÷ÐÐÎı¾±à¼Æ÷Ò»Ñù£¬¿ÉÒԺܺõı༸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨ UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£¶øÇҺͺܶàÀ´×Ô Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding ¡¢fileencoding ¡¢fileencodings ¡¢termencoding (ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë²Î¿¼ Vim ÔÚ ......
¡¡¡¡±¾ÎÄÒ²¼´¡¶Learning the bash Shell¡·3rd EditionµÄµÚÈýÕÂCustomizing Your EnvironmentÖ®¶ÁÊé±Ê¼Ç£¬µ«ÎÒÃǽ«²»ÏÞÓÚ´Ë¡£ÉèÖÃÒ»¸öºÃµÄÓû§»·¾³£¬¶ÔÎÒÃÇ¿ª·¢ÊǷdz£¹Ø¼üµÄ¡£ÔÚÕâÒ»Õ½ÚÖУ¬´ÓËĸö·½Ãæ½øÐнéÉÜ£ºÌرðµÄÎļþ£¬±ðÃû£¬Ñ¡Ï²ÎÊý¡£
ÌØÊâÎļþ
¡¡¡¡ÔÚÓû§Ä¿Â¼ÏÂÓм¸¸öÌØÊâµÄÎļþ£¬¿ÉÒÔÓÃls -a
À´²é¿´ÕâЩÒþ² ......