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

AIX»ù´¡

·¢²¼Ê±¼ä:2007-02-02 01:01:17À´Ô´:ºìÁª×÷Õß:Wisdom
AIX²Ù×÷ϵͳ¸ÅÊö
Ò»¡¢AIXµÄÐÔÄܺÍÌص㣺
1¡¢¶ÌСǿ¸ÉµÄÄں˺ͷḻµÄºËÍâϵͳ³ÌÐò
AIXµÄÉè¼ÆÕ߶ÔϵͳµÄÄں˽øÐÐÁ˾«ÐÄÉè¼Æ£¬Ê¹Ö®¼È¼ò¶ÌÓÖÇ¿¸É£¬¿É³£×¤ÄÚ´æ¡£°Ñ·²ÊÇÄÜ´ÓÄÚºËÖзÖÀë³öÀ´µÄ²¿·Ö¶¼´ÓÖзÖÀë³öÀ´£¬±»·ÖÀë³öÀ´µÄ²¿·Ö¾ù°´ºËÍâϵͳ³ÌÐò¶Ô´ý¡£
2¡¢Á¼ºÃµÄÓû§½çÃæ
AIXÏòÓû§ÌṩµÄ½çÃ湦ÄÜÆ뱸£¬Ê¹Ó÷½±ã¡£ÆäÖаüÀ¨£º
ÃüÁî ÊÇÓû§Í¨¹ý¼üÅ̺ÍÏÔʾÖÕ¶ËÓëϵͳ½øÐн»»¥»á»°µÄ½çÃæ¡£
ϵͳµ÷ÓÃÃüÁî Êǹ©Óû§ÔÚ±àдӦÓóÌÐòʱʹÓõĽçÃæ¡£
X-WINDOWS ÊÇϵͳÓëÓû§Ö®¼äµÄͼÐνçÃæ»·¾³¡£
3¡¢¿ÉװжÎļþ¾íµÄÎļþϵͳ
AIXµÄÕû¸öÎļþϵͳÓÉÒ»¸ö»ù±¾ÎļþϵͳºÍÈô¸É¸ö¿ÉװжµÄ×ÓÎļþϵͳ¹¹³É£¬ËüÔÊÐíÓû§¸ù¾ÝÐèÒª°Ñ×Ô¼ºµÄÎļþ¾í×°Èë²¢Óë»ù±¾ÎļþϵͳÁ¬½ÓÆðÀ´£¬²»ÐèҪʱ¿ÉÒÔ²ðжÏÂÀ´¡£AIXµÄÕâÖÖÌصã¼È±ãÓÚÀ©´óÎļþ´æ´¢¿Õ¼ä£¬ÓÖÓÐÀûÓÚ°²È«ºÍ±£ÃÜ¡£
4¡¢Îļþ¡¢Ä¿Â¼ºÍ¸÷ÖÖI/OÉ豸¾ù×÷ΪÎļþͳһ´¦Àí
ΪÁË·½±ãÓû§Ê¹Óã¬AIX½«ÆÕͨÊý¾ÝÎļþ¡¢Ä¿Â¼ÎļþºÍI/OÉ豸¾ùÒÔÎļþÂÛÖ®£¬ÈýÕßʹÓÃÏàͬµÄ±£»¤»úÖÆ£¬ÔÚÓû§ÃæÇ°ËüÃǾßÓÐÏàͬµÄÓï·¨ºÍÓïÒå¡£
5¡¢ÐÔÄÜÁ¼ºÃµÄÍøÂç»·¾³
AIXΪÓû§ÌṩÁËÁ¼ºÃµÄÍøÂç»·¾³£¬Ö÷Òª°üÀ¨£º
Ò»×éÍøÂçͨÐÅЭÒ飬ÀýÈçTCP/IP¡£
Ò»×éÍøÂçͨÐŹ¤¾ß£¬ÀýÈçmail, write,wall,talkµÈ¡£
Ò»×éÍøÂç±à³Ì½Ó¿Ú£¬ÀýÈçTLI(Transport Layer Interface)ºÍSocketµÈ¡£
6¡¢ÍêÉƵݲȫ»úÖÆ
AIX¾ßÓÐÍêÉƵĶ༶°²È«/±£ÃÜ»úÖÆ£¬ÆäÖÐÓû§¼¶»úÖƵÄһЩ»ù±¾ÄÚÈÝ°üÀ¨£º
AIX½«ÆäÓû§·ÖΪÆÕͨÓû§ºÍÌØȨ(³¬¼¶)Óû§£¬ËüÃǸ÷×ÔÏíÓв»Í¬µÄȨÏÞ¡£
AIXΪÿһ¸öÓû§¶¼½¨Á¢Ò»¸ö»§Í·£¬³Æ֮ΪÓû§ÕÊ»§¡£ÏµÍ³Í¨¹ýÓû§ÕÊ»§À´×éÖ¯ºÍ¼Ç¼¸÷Óû§ÔÚϵͳÖеĻ£¬²¢½«ÆäÏÞÖÆÔÚÒ»¶¨µÄ»î¶¯·¶Î§Ö®ÄÚ¡£
AIXÒªÇóÿһ¸öÓû§±ØÐëÓúϷ¨µÄÓû§Ãû¡¢ÕýÈ·µÄ¿ÚÁî½øÐÐ×¢²á£¬²¢½«Ã¿Ò»¸öÓû§¶¼¹é»®µ½Ä³Ò»¸öÌض¨µÄÓû§×éÖС£
AIXÒªÇóÿһ¸öÓû§±ØÐë°´ÕÕ×Ô¼ºÓµÓеÄȨÏÞ¶ÔÎļþ/Ŀ¼½øÐзÃÎÊ£¬²»·ûºÏȨÏ޹涨µÄ·ÃÎʲ»±»ÏµÍ³Ëù½ÓÊÜ¡£
7¡¢AIXÓÃCÓïÑÔ±àд£¬·Ç³£±ãÓÚÒÆÖ²
¶þ¡¢AIXµÄ»ù±¾½á¹¹
AIX²ÉÓÃÁËÄں˺ͺËÍâ³ÌÐòÓлú½áºÏµÄ×ÜÌå¿ò¼Ü¡£´ÓÂß¼­ÉÏ¿´£¬Õû¸öϵͳ¿É·ÖΪÎå²ã£ºÓ²¼þ²ã¡¢Äں˲㡢ϵͳµ÷Óò㡢ºËÍâ³ÌÐò²ãºÍÍâ¿Ç²ã¡£
Ó²¼þ²ãÊÇAIXϵͳµÄ»ù´¡¡£Ò»·½ÃæËüҪΪAIXÌṩ±ØÒªµÄÓ²¼þÖ§³Ö£¬ÁíÒ»·½ÃæËüÓÖÒªÔÚ¸ÃϵͳµÄͳһ¹ÜÀí¿ØÖÆÏÂÓÐÌõ²»Îɵع¤×÷¡£Ó²¼þ²ã°üÀ¨CPU¡¢´æ´¢Æ÷¡¢I/OÉ豸ºÍÍøÂç¿ØÖƲ¿¼þµÈ¡£
Äں˲ãÊÇAIXϵͳµÄÖØÒª²¿·Ö£¬Ëü¸ºÔð¹ÜÀí¡¢Ö§ÅäϵͳÖеÄÈ«²¿×ÊÔ´£¬ÆäÖаüÀ¨Ó²¼þ×ÊÔ´¡¢Èí¼þ×ÊÔ´ºÍÐÅÏ¢×ÊÔ´µÈ¡£AIXÄں˲ã°üÀ¨ÖжÏ/ÏÝÈë´¦Àí£¬´æ´¢¹ÜÀí¡¢½ø³Ì¹ÜÀí¡¢I/OÉ豸¹ÜÀíºÍÎļþ¹ÜÀíµÈ²¿·Ö¡£
ϵͳµ÷ÓòãÊÇÄÚºËÓëºËÍâ³ÌÐòµÄ½çÃæ¡£ºËÍâ³ÌÐòͨ¹ýËüµ÷ÓÃÄں˵Ä×Ó¹¦Äܲ¢ÎªÖ®·þÎñ¡£
ºËÍâ³ÌÐò²ãÔÚÄÚºËÖ§³ÖϹ¤×÷¡£Óû§¿Éͨ¹ýÍâ¿Ç²ã¶ÔÆäÖеijÌÐòʵʩ¿ØÖÆ¡£ËüÖ÷Òª°üÀ¨ºËÍâ³£¹æϵͳ³ÌÐò¡¢¸÷ÖÖʵÓÃÈí¼þºÍÓû§Ó¦ÓóÌÐòµÈ¡£
Íâ¿Ç²ãÊÇAIXϵͳֱ½ÓÃæÏòÓû§µÄÍâ²ã½çÃ棬ËüÓÉShellºÍX-window×é³É¡£ShellÊÇAIX²Ù×÷ϵͳµÄÃüÁîÓïÑÔ/ÃüÁî³ÌÐòÉè¼ÆÓïÑÔ»·¾³£¬ÔÚÕâ¸ö»·¾³ÏÂÓû§¼È¿ÉʹÓõ¥¸öShellÃüÁҲ¿É±àдShellÃüÁî³ÌÐò¡£X-windowÊÇAIXϵͳµÄͼÐÎÓû§½çÃæ¡£
UNIXµÄһЩ»ù±¾¸ÅÄî
Ò»¡¢ÕÊ»§
1¡¢ÆÕͨÓû§ÕÊ»§
ÆÕͨÓû§ÕÊ»§ÊÇ×î³£ÓõÄÓû§ÕÊ»§¡£ËüÖ÷ÒªÉæ¼°ÕâһЩÄÚÈÝ£º
Óû§µÇ¼Ãû
Óû§¿ÚÁî×Ö
×é±êʶ·û(GID)
Óû§µÇ¼Ŀ¼(Home directory)
Óû§µÇ¼shell
2¡¢³¬¼¶Óû§ÕÊ»§
³¬¼¶Óû§ÕÊ»§ÓÐÆä¹Ì¶¨µÄµÇ¼Ãûroot¡£³¬¼¶Óû§ÓµÓÐϵͳÖÐ×î¸ßȨÁ¦£¬¿ÉÒÔ¶Á»ò±à¼­ÏµÍ³ÖеÄÈÎÒâÒ»¸öÎļþ£¬¿ÉÒÔÖ´ÐÐϵͳÖÐÈÎÒâÒ»¸ö³ÌÐò£¬ËùÒÔʹÓ󬼶Óû§ÕÊ»§Ê±±ØÐë½÷É÷£¬²»ÄÜËæÒâɾ³ý»òÐÞ¸ÄϵͳÖеÄÖØÒªÎļþ»òÆäËüÄÚÈÝ¡£ÎªÁËÈ·±£°²È«£¬³¬¼¶Óû§ÕÊ»§µÄ¿ÚÁîÓ¦¸ÃÓÉרÈ˸ºÔð±£ÃÜ£¬²¢Ã¿¸ôÒ»¶Îʱ¼ä¸ü¸Ä¡£
¶þ¡¢ÎļþºÍĿ¼
ÎļþÊÇUNIXϵͳµÄ»ù±¾µ¥Î»£¬¹²ÓÐÈýÖÖ²»Í¬ÀàÐ͵ÄÎļþ£º
ÆÕͨÎļþ ÆÕͨÎļþ¾ÍÊÇͨ³£ËùÖ¸µÄ³ÌÐòÎļþºÍÎı¾Îļþ£¬ÓÃÀ´´æ´¢Êý¾Ý¡£ËüÃǼȿÉÊÇÎı¾µÄ£¬Ò²¿ÉÊǶþ½øÖƵģ¬ÓеĻ¹¿ÉÒÔÖ´ÐС£
Ŀ¼Îļþ Ŀ¼Îļþ°üÀ¨ÁËÓÃÀ´´æÈ¡ÆäËüÎļþµÄÐÅÏ¢£¬¼ò³ÆΪĿ¼¡£
ÌØÊâÎļþ Ò»¸öÌØÊâÎļþ¶¨ÒåÁËÒ»¸öÏȽøÏȳö(FIFO)µÄ¹ÜµÀ»òÕßÒ»¸öÎïÀíÉ豸£¬Í¨³£Ö¸´Å´ø¡¢´ÅÅ̵ÈÍⲿÉ豸¡£
1¡¢ÆÕͨÎļþ
ÆÕͨÎļþÊÇ×î³£ÓõÄÎļþ£¬ËüÊÇÒÔ×Ö½ÚΪµ¥Î»µÄÊý¾ÝÐÅÏ¢µÄ¼¯ºÏ£¬ÕâЩÎļþ°üÀ¨Îı¾¡¢³ÌÐòÂë¡¢³ÌÐòÊý¾Ý¼°¿ÉÖ´ÐеĶþ½øÖÆ´úÂëÎļþ¡£Ã¿¸öÆÕͨÎļþ¶¼¾ßÓÐÏÂÁлù±¾ÊôÐÔ£º
Ò»¸öÎļþÃû¡£
Ò»¸öΨһµÄÎļþË÷ÒýºÅ£¬¼´i½áµãºÅ¡£
ÒÔ×Ö½ÚΪµ¥Î»µÄÎļþ´óС¡£
×î½ü·ÃÎÊʱ¼äºÍÐÞ¸Äʱ¼ä¡£
Ò»×é´æȡȨ¡£
ÊôÖ÷Ãû¡£
Êô×éÃû¡£
ʹÓÃÃüÁîls -li¿É¿´µ½Ò»¸öÆÕͨÎļþËù¾ßÓеÄÊôÐÔ£º
1234 -rwxr-xr-x 2 user group 688 NOV 27 1999 /usr/calender
Ë÷ÒýºÅ Îļþ±êÖ¾ºÍ´æȡȨÏÞ Á´½ÓÊý ÊôÖ÷Ãû Êô×éÃû ×Ö½ÚÊý ×îºóÐÞ¸Äʱ¼ä ÎļþÃû
ÆÕͨÎļþ»¹¿É·ÖΪÁ½ÀࣺÎı¾ÎļþºÍ¶þ½øÖÆÎļþ¡£
(1)¡¢Îı¾Îļþ
Îı¾ÎļþÊÇ°üº¬Óû§¿É¶ÁÐÅÏ¢µÄÎļþ¡£ÕâЩÎļþÒÔASCIIÂ뷽ʽ´æ´¢£¬¿ÉÏÔʾºÍ´òÓ¡¡£Îı¾ÎļþµÄÐв»ÄÜ°üÀ¨¿Õ×Ö·û(¼´ÂëÖеÄNULL)£¬ÐеÄ×î´ó³¤¶È(°üÀ¨»»ÐзûÔÚÄÚ)Ò²²»Äܳ¬¹ý(LINE_MAX)Ëù¶¨ÒåµÄ×Ö½ÚÊý¡£²»¹ýÎı¾ÎļþÖв¢²»ÏÞÖÆʹÓóý¿Õ×Ö·ûÒÔÍâµÄ¿ØÖÆ×Ö·û»òÆäËü²»¿É´òÓ¡×Ö·û¡£
(2)¡¢¶þ½øÖÆÎļþ
¶þ½øÖÆÎļþÊÇ°üº¬¼ÆËã»ú¿É¶ÁÐÅÏ¢µÄÎļþ¡£¶þ½øÖÆÎļþ¿ÉÒÔÊÇ¿ÉÖ´ÐеÄÎļþ£¬Ê¹ÏµÍ³¸ù¾ÝÆäÖеÄÖ¸ÁîÍê³ÉijÏ×÷¡£ÃüÁîºÍ³ÌÐò¶¼ÊÇÒÔ¿ÉÖ´ÐеĶø½øÖÆÎļþ·½Ê½´æ´¢¡£¶þ½øÖÆÎļþûÓÐÐеij¤¶ÈÏÞÖÆ£¬Ò²¿É°üº¬¿Õ×Ö·û¡£
2¡¢Ä¿Â¼Îļþ
Ŀ¼ÎļþÊÇÒ»ÖÖ¶ÀÌصÄÎļþÀàÐÍ£¬ËüÖ»°üº¬´æÈ¡Îļþ»òÆäËüĿ¼ʱËùÐèÒªµÄÐÅÏ¢£¬Í¨³£¼ò³ÆΪĿ¼¡£Ä¿Â¼Öаüº¬ÓÐĿ¼Ïÿ¸öĿ¼Ïî°üº¬Ò»¸öÎļþÃû/Ŀ¼ÃûºÍÒ»¸ö½áµãºÅ¡£ÎªÁËÌá¸ß·ÃÎÊËٶȣ¬²¢³ä·ÖÀûÓôÅÅ̿ռ䣬ÎļþÖеÄÊý¾Ý´æ´¢ÔÚ²»Í¬µÄλÖá£ËùÒÔÓëÒ»¸öÎļþÏà¹ØµÄÉ¢ÁÐÊý¾Ý¿éµÄµØÖ·¶¼°üº¬ÔÚÒ»¸öi½áµãÖС£i½áµã»¹°üº¬ÓйØÎļþµÄ×î½ü·ÃÎʺÍÐÞ¸Äʱ¼ä¡¢´æȡȨÏÞ¡¢Á´½ÓÊý¡¢ÎļþÊôÖ÷¼°ÎļþÀàÐ͵ÈÐÅÏ¢¡£Í¨¹ýʹÓÃlnÃüÁî¿ÉÒÔ´´½¨¶à¸öĿ¼Ï½«²»Í¬µÄÎļþÁ´½Óµ½Í¬Ò»¸öi½áµãÉÏ¡£
Ŀ¼¿ÉÒÔÓɲÙ×÷ϵͳ¡¢ÏµÍ³¹ÜÀíÔ±¡¢Óû§À´¶¨Òå¡£ÀýÈ磺
/ ¸ùĿ¼
/dev °üÀ¨ÓйØÊäÈëÊä³öÉ豸µÄÌØÊâÎļþ
/etc °üÀ¨ÓйØϵͳ³õʼ»¯ºÍϵͳ¹ÜÀíµÄÎļþ
/home °üÀ¨ÏµÍ³Óû§µÄµÇ¼Ŀ¼
/tmp °üÀ¨Ò»Ð©ÁÙʱÎļþ
/usr °üÀ¨lpp,includeºÍÆäËüµÄϵͳĿ¼
/usr/bin °üÀ¨Óû§¿ÉÖ´ÐеijÌÐò¡£
Ŀ¼½á¹¹¾­³£±»±È³ÉÒ»¿Ãµ¹ÖõÄÊ÷£¬³ÆΪĿ¼Êý¡£¸¸Ä¿Â¼ÏÂÃæÊÇ×ÓĿ¼¡£
3¡¢ÌØÊâÎļþ
ÌØÊâÎļþÊÂʵÉÏÊÇÖ¸¹ÜµÀÒÔ¼°ºÍϵͳÏàÁ¬µÄһЩÎïÀíÉ豸£¬ÈçÓ²ÅÌ¡¢Öնˡ¢´Å´ø»úµÈ¡£ÔÚUNIXϵͳÖУ¬ÕâЩÌØÊâÎļþͨ³£´æ·ÅÔÚ/devĿ¼ÖС£
ÌØÊâÎļþ·ÖΪÈýÖÖÀàÐÍ£ºFIFO(ÏȽøÏȳö)¹ÜµÀÎļþ¡¢¿éÉ豸ÌØÊâÎļþºÍ×Ö·ûÉ豸ÌØÊâÎļþ¡£
FIFO¹ÜµÀÎļþÊÇÓɽø³Ì´´½¨µÄ£¬²¢±»¸Ã½ø³ÌÓÃÀ´ºÍÁíÒ»¸ö½ø³Ì½øÐÐÔÝʱµÄͨÐÅ¡£µ±´´½¨ËüµÄ½ø³Ì½áÊøʱ£¬ÕâЩÎļþÒ²²»ÔÙ´æÔÚ¡£
¿éÉ豸ÌØÊâÎļþÔòÊÇÖ¸Ó²ÅÌ¡¢ÈíÅÌ¡¢´Å´øÕâÑùµÄÉ豸£¬ËüÃǵļǼÊý¾ÝÊÇÒÔ512¸ö×Ö½ÚµÄÊý¾Ý¿éΪµ¥Î»(512byts=1block)µÄ£¬Òò´Ë±»³ÆΪ¿éÉ豸¡£(Ê׸ö×ÖĸÊÇb)
×Ö·ûÉ豸ÌØÊâÎļþÔòÊÇÖ¸´òÓ¡»ú¡¢Öնˡ¢ÏÔʾÆ÷ÕâÀàÉ豸¡£ÕâЩÉ豸½øÐÐÊý¾Ý´«Êäʱͨ³£ÒÔ×Ö·ûΪµ¥Î»£¬Òò´Ë±»³ÆΪ×Ö·ûÐÍÉ豸¡£(Ê׸ö×ÖĸÊÇc)
ÀýÈ磺
brw-rw-rw 3 bin bin 2 7 NOV 19 14:00 /dev/fd0
c-w--w--w 2 bin bin 6 0 NOV 30 10:02 /dev/lp
É豸ÌØÊâÎļþ Á´½ÓÊý ÊôÖ÷Ãû Êô×éÃû Ö÷É豸ºÅ ´ÎÉ豸ºÅ ×îºóÐÞ¸Äʱ¼ä ÌØÊâÎļþÃû
ÆäÖ÷É豸ºÅ±íʾÉ豸µÄÀàÐÍ£¬´ÎÉ豸ºÅ±íʾ¸ÃÉ豸ÊÇϵͳÖеĵڼ¸¸öÕâÖÖÉ豸¡£
¼¸ºõÿ¸ö¿éÉ豸¶¼ÓÐÒ»¸ö×Ö·ûÐͽӿڣ¬¶ÔÓÚÕâÖÖ¿éÉ豸µÄ×Ö·ûÐͽӿÚÒ²ÓÐÒ»¸öÌØÊâÎļþÓëÖ®Ïà¶ÔÓ¦¡£Í¨³£ÊÇÔÚ¿éÉ豸ÌØÊâÎļþµÄÎļþÃûÇ°Ãæ¼ÓÒ»¸ö×Öĸr¡£fd---rfd¡£
4¡¢ÎļþºÍĿ¼µÄÃüÃû
(1)¡¢ÎļþÃûµÄ³¤¶È×î¶àΪ256¸ö×Ö·û¡£
(2)¡¢ÎļþÃûÒª·Ö´óСд¡£
(3)¡¢.±íʾµ±Ç°¹¤×÷Ŀ¼£»..±íʾµ±Ç°¹¤×÷Ŀ¼µÄÉÏÒ»¼¶Ä¿Â¼£»~ºÍHOME±íʾÓû§µÄµÇ¼Ŀ¼¡£
(4)¡¢*ͨÅäÈô¸É¸ö×Ö·û£»£¿Í¨Åäµ¥¸ö×Ö·û£»[]ͨÅäÀ¨ºÅÖÐÈκÎÒ»¸ö×Ö·û£»£¡Í¨Åä³ýÆäºó×Ö·ûÍâµÄÈκÎ×Ö·û¡£
5¡¢ÎļþºÍĿ¼µÄ´æȡȨ
¶ÁȨrÊý×Ö±íʾ4¡£
дȨwÊý×Ö±íʾÊÇ2¡£
Ö´ÐÐȨxÊý×Ö±íʾÊÇ1¡£
Èý¡¢ÃüÁî
1¡¢ÃüÁî¡¢±êÖ¾¼°²ÎÊýÖ®¼äÒªÓпոñ¡£
2¡¢Á½¸ö»ò¶à¸öÃüÁî¿ÉÒÔÔÚͬһÐÐÊäÈ룬ÖмäÒԷֺţ»¸ô¿ª¡£
3¡¢ÃüÁî×÷Òµ·ÅÔÚºǫִ́ÐУ¬ÔÚÃüÁî×îºó¼ÓÉÏ·ûºÅ&¡£
4¡¢ÁгöÒÔÇ°ÊäÈëµÄÃüÁîÁбíʱÓÃhistory¡£
5¡¢Öظ´ÃüÁîÀúÊ·ÖеÄÃüÁîʱr¡£
6¡¢Ìæ»»ÃüÁîÀúÊ·ÖеÄÃüÁî×Ö·û´®Ê±ÓÃr ¾É´®=д®¡£
7¡¢´´½¨ÃüÁî±ðÃûʱÓÃalias Name=String£¬ÀýÈç$alias dir="/usr/bin/ls -alF"¡£
ʹÓÃAIXϵͳ
Ò»¡¢ÏµÍ³µÄÆô¶¯
1¡¢ÄÚ²¿×Ô¼ì
2¡¢¼Óµç×Ô¼ì
3¡¢×°ÈëÄں˳ÌÐò
4¡¢Èí¼þÅäÖü°³õʼ»¯
¶þ¡¢×¢²á
ÔÚ¿ØÖÆ̨ÉÏ×¢²áÓÐһЩѡÏîºÍÉèÖãº
1¡¢ÖØпªÊ¼(Start over)°´´Ë°´Å¦¿Éɾ³ýÔ­À´µÄÊäÈ룬ÓÚÊÇ¿ÉÖØÐÂÊäÈëÓû§Ãû£¬ÔٴεǼ¡£
2¡¢Ñ¡Ïî(Options)°´´Ë°´Å¦¿ÉÑ¡ÔñÒÔϼ¸Ï
ÓïÑÔ
ȇȡ
ÃüÁîÐÐ×¢²á Çл»µ½ÃüÁîÐл·¾³
ÖØÖÃ×¢²áÆÁÄ» ÖØÐÂÆô¶¯X-server
Óû§ÃûºÍ¿ÚÁÊäÈëÕýÈ·ºó£¬½«»á½øÈëϵͳ½øÐй¤×÷¡£
Èý¡¢¸ü¸Ä¿ÚÁî
ͨ¹ýʹÓÃpasswdÃüÁ¿ÉÒÔÐ޸ĿÚÁî×Ö¡£ÀýÈ磺
$passwd
Changing password for "User"
User's Old password:
User's New password:
Re-enter User's new password:
ÕâÑùÊäÈëÕýÈ·ºó£¬¸ü¸Ä¿ÚÁî³É¹¦¡£Ï´Î×¢²áʱ£¬ÐëʹÓÃеĿÚÁ²ÅÄÜ×¢²á³É¹¦¡£
ËÄ¡¢Ä¿Â¼¹ÜÀí
1¡¢ÏÔʾµ±Ç°¹¤×÷Ŀ¼
pwd
2¡¢ÏÔʾĿ¼ÄÚÈÝ
ls [-option] [name]
Æä²ÎÊýµÄÒâÒå·Ö±ðÊÇ£º
-a£ºÁгö°üº¬ÒÔ . ÆðʼµÄÒþ²ØµµÔÚÄÚµÄËùÓÐÎļþÃû
-t£ºÒÀÕÕÎļþ×îºóÐÞ¸Äʱ¼ä֮˳Ðò£¬ÒÀÐòÁгöÎļþÃû
-F£ºÁгöĿǰĿ¼ÏÂÖ®ÎļþÃû¼°ÆäÀàÐÍ¡£/½áβ±íʾΪĿ¼Ãû³Æ£¬*½áβ±í ʾΪִÐеµ£¬@½áβ±íʾΪ symblic link
-l£ºÁгöĿ¼ÏÂËùÓÐÎļþÖ®Ðí¿ÉȨ¡¢ÓµÓÐÕß¡¢Îļþ´óС¡¢ÐÞ¸Äʱ¼ä¼°Ãû³Æ
-lg£ºÍ¬ÉÏ£¬²¢ÏÔʾ³öÎļþÖ®ÓµÓÐÕßȺ×éÃû³Æ
-R£ºÏÔʾ³öĿ¼Ï£¬ÒÔ¼°ÆäËùÓÐ×ÓĿ¼֮ÎļþÃû
3¡¢¸Ä±äµ±Ç°Ä¿Â¼cd
תµ½µÇ¼ʱµÄ¹¤×÷Ŀ¼
תµ½Ö¸¶¨Ä¿Â¼
תµ½µ±Ç°Ä¿Â¼µÄÉÏÒ»²ãĿ¼
4¡¢´´½¨Ä¿Â¼
mkdir Directory
5¡¢É¾³ýĿ¼
rmdir Directory
6¡¢Ä¿Â¼»»Ãû
mv SourceDirectory TargetDirectory
7¡¢Ä¿Â¼¿½±´
cp SourceDirectory TargetDirectory
Îå¡¢Îļþ¹ÜÀí
1¡¢Îļþ¿½±´
cp SourceFile TargetFile
cp SourceFile TargetDirectory
2¡¢Îļþɾ³ý
rm File
3¡¢ÎļþÁ´½Ó
ln SourceFile TargetFile
4¡¢ÎļþÒƶ¯/»»Ãû
mv SourceFile TargetFile or TargetDirectory
5¡¢ÏÔʾÎļþÄÚÈÝ
more
pg
cat
head
tail
6¡¢Îļþ²éÕÒ
find / -name .profile -print
find . -perm 0600 -print
find . -ctime 1 -print
find . -inum 2145 -print
find . -user abc -print
Áù¡¢¸Ä±äÎļþ/Ŀ¼ÊôÐÔ
ÿһ¸öÎļþ»òĿ¼¶¼ÓÐÒ»¸öÊôÖ÷¡¢Ò»¸ö×éÃûºÍÒ»×é´æȡȨÏÞ¡¢·ÃÎÊʱ¼äµÈµÈ¡£
1¡¢¸Ä±äÎļþ»òĿ¼µÄ×î½ü·ÃÎÊʱ¼ä
touch
2¡¢¸Ä±äÎļþ»òĿ¼µÄÊôÖ÷
chown
3¡¢¸Ä±äÎļþ»òĿ¼µÄÊô×é
chgrp
4¡¢¸Ä±äÎļþ»òĿ¼µÄ´æȡȨ
chmod
chmod g+w File
chmod u+r File
chmod u=rwx File
chmod 755 File
Æß¡¢DOS¸ñʽÎļþµÄʹÓÃ
1¡¢¶Ô´ÅÅ̽øÐÐDOS¸ñʽ»¯
dosformat /dev/fd0
2¡¢ÏÔʾDOSÎļþµÄĿ¼
dosdir
3¡¢¶ÁDOS¸ñʽÎļþ
dosread File1 File2
4¡¢Ð´DOS¸ñʽÎļþ
doswrite File1 File2
5¡¢É¾³ýDOS¸ñʽÎļþ
dosdel File
°Ë¡¢½ø³Ì¿ØÖÆ
1¡¢²éѯ½ø³Ì״̬
ps
ps -a
ps -ef
ps -l
ps -u uid
2¡¢ÖÕÖ¹½ø³ÌµÄÖ´ÐÐ
kill 19160
kill -9 19160
3¡¢¶Ô½ø³ÌµÄ¿ØÖÆ
nohup
nice
sleep
wait
4¡¢ÔÚÖ¸¶¨µÄʱ¼äÔËÐгÌÐò
at
batch
cron /usr/bin/crontab
crontabºÍ/var/spool/cron/crontabs/
¾Å¡¢Í˳öϵͳºÍ¹Ø»ú
exit
Ctr + d
logout
shutdown [ -option ] [ +time message ]
µ±shutdown²»´øÈκβÎÊýʱ£¬»úÆ÷»áÏòÁ¬ÔÚÆäÉϵÄËùÓÐÖն˷¢³öÒ»Ìõ¹Ø»úÐÅÏ¢£¬½Ó×ÅÔÚÒ»·ÖÖÓºó¹Ø±ÕËùÓÐÖնˣ¬É±µôËùÓÐÔÚϵͳÉÏÔËÐеĽø³Ì£¬Ð¶³ýËùÓÐÎļþϵͳ£¬×îºó¹Ø±Õϵͳ¡£
ÄãÒ²¿ÉÒÔÔÚshutdownºó¼ÓÉÏһЩ²ÎÊý£¬ËüÃÇ·Ö±ðÊÇ£º
-F£º ¿ìËٹػú£¬Ã»ÓÐÈκξ¯¸æÐÅÏ¢ (warning)
-r£º ¹Ø»úºóÖØÆð
***********************AIX»ù´¡½Ì³Ì£¨ÖУ©**********************
Îĵµ±à¼­ÃüÁî
ÔÚ AIX ÖУ¬³£ÓõÄÎĵµ±à¼­ÃüÁîÊÇ vi¡£
ÏÂÃ棬ÎÒÃǾÍÀ´Ñ§Ï°Ò»ÏÂÓйØviµÄʹÓþö ÇÏ¡£
ÔÚviÖУ¬±ØÐëÀμÇËüÊÇÓÐÁ½¸ö״̬µÄ ---- ÊäÈë״̬ÓëÃüÁî״̬¡£ÓÉÊäÈë״̬Çл» µ½ÃüÁî״̬£¬±ØÐëESC¼ü£»¶ø´ÓÃüÁî״̬ת»»µ½ÊäÈë״̬µÄÃüÁî±È½Ï¶à£¬ÓÐa£¬ A£¬i£¬I£¬s£¬S£¬c£¬C£¬oºÍOµÈ£¬
Æä´Î£¬±ØÐëÕÆÎÕ¹â±êµÄ»ù±¾Òƶ¯·½·¨¡£ÒòΪ AIX µÄÐí¶àÃüÁÊÇÓë¹â±êËùÔÚµÄλ ÖÃÏà¹ØµÄ¡£ÇëÀμǣ¬Ö»ÓÐÔÚÃüÁî״̬ϲÅÄÜÒƶ¯¹â±ê¡£Äã¿ÉÒÔÓ÷½Ïò¼üÒƶ¯£¬Ò²¿É ÒÔÓÃh£¬j£¬k£¬lÀ´Òƶ¯¡£ÆäÖУ¬h Ïò×ó£¬j ÏòÏ£¬kÏòÉÏ£¬lÏòÓÒ¡£
µÚÈý£¬¼Çס»ù±¾µÄ²åÈ롢ɾ³ýÃüÁî¡£
1¡¢²åÈë»ò¸½¼ÓÕýÎÄ
²åÈë»ò¸½¼ÓÕýÎĶ¼ÊÇÏòÎļþÖмÓÈëÐÂÄÚÈÝ£¬ÔÚ¹â±êÇ°²åÈë×Ö·ûµÄÃüÁîΪ i £¬ÔÚµ±Ç°ÐеÄÐÐÍ·²åÈë×Ö·ûµÄÃüÁîΪ I £¬ÔÚ¹â±êºó¸½¼Ó×Ö·ûµÄÃüÁîΪ a £¬ÔÚµ±Ç°ÐеÄÐÐβ¸½ ¼Ó×Ö·ûµÄÃüÁîΪ A £¬ÔÚµ±Ç°Ðкó¼ÓÈëÈô¸ÉÐÐÐÂÄÚÈݵÄÃüÁîΪ o £¬ÔÚµ±Ç°ÐÐ֮ǰ¼Ó ÈëÈô¸ÉÐÐÐÂÄÚÈݵÄÃüÁîΪ O £¬Õâ6¸öÃüÁ½«Ê¹ vi ÓÉÃüÁî״̬ת»»µ½²åÈë״̬£¬µ± ¼ÓÈëÐÂÄÚÈݺ󣬱ØÐë°´ ESC ¼üʹ vi ÓɲåÈë״̬Çл»µ½ÃüÁî״̬¡£
2¡¢É¾³ýÕýÎÄ
ÔÚ vi ÖÐɾ³ýÕýÎĵÄÃüÁî±È½Ï¶à£¬¿ÉÒÔ°´×Ö·û¡¢µ¥´ÊºÍÐеȲ»Í¬µÄµ¥Î»½øÐÐɾ³ý¡£É¾³ý×Ö·ûµÄÃüÁʹ vi ¼ÌÐø´¦ÓÚÃüÁî״̬¡£ÏÂÃæÊǸ÷ɾ³ý¼üµÄÒâÒ弰ɾ³ý½áÊøºó ¹â±êµÄλÖá£
ɾ³ý¼üÒâÒåɾ³ýºó¹â±êµÄλÖÃ
x ¼üɾ³ý¹â±êËùÔÚµÄ×Ö·ûÒƶ¯µ½±¾ÐÐÖÐÏÂÒ»¸ö×Ö·û
X ¼üɾ³ý¹â±êÇ°Ò»¸ö×Ö·ûÍ£ÁôÔÚÔ­À´µÄÄǸö×Ö·û
D ¼üɾ³ý¹â±êÖÁÐÐβµÄ×Ö·ûÔÚ±¾ÐеÄÐÐβ
dd ¼üɾ³ý¹â±êËùÔÚÐÐÒƶ¯µ½ÏÂÒ»ÐÐ
3¡¢²éÕÒ»òÐÞ¸ÄÕýÎÄ
/ ±í´ïʽ
£¿±í´ïʽ
Ç°ÕßÊDZíʾ´Óµ±Ç°¹â±êλÖÿªÊ¼Ïòºó²éÕÒ£¬Îʺűíʾ´Óµ±Ç°¹â±êλÖÿªÊ¼ÏòÇ°²éÕÒ
4¡¢±£´æÎı¾ÓëÍ˳ö vi
: w±£´æÎļþÄÚÈÝ
: w ! Ç¿Ðб£´æÎļþÄÚÈÝ
: qÍ˳ö vi ״̬
: q !Ç¿ÖÆÍ˳ö vi ״̬
: wq´æÅ̲¢Í˳ö

Shell
Shell ÊÇÒ»¸öÃüÁî½âÊÍÆ÷£¬Ò²ÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ¡£ËüÓÐKorn shell¡¢ Bourne shellºÍ C shellµÈ£¬AIXʹÓõÄÊÇK shell¡£
1¡¢³õʼ»¯Îļþ.profile(.dtprofile)ºÍÓû§»·¾³µÄ¶©ÖÆ
¸ÅÀ¨µØ½«£¬.profileÓ¦Íê³ÉÈ·ÈÏÉèÖÃÓû§ÖÕ¶ËÀàÐÍ¡¢¶¨Òå¸÷ÖÖ±ØÒªµÄshell±äÁ¿¡¢µÈµÈ¡£ÏÂÃæÊÇÒ»¸ö.profileµÄÀý×Ó£º
PATH=/usr/bin/ : /etc : /usr/sbin : /usr/lib : $HOME/bin : /usr/bin/X11 : /sbin : /bin
export PATH
export PS1='$PWD>'
export EDITOR=/usr/bin/vi
set -o vi
alias dir="ls -l"
ÔÚK shellÖг£¼ûµÄ»·¾³±äÁ¿ÓУº
PATH ²éѯ³ÌÐòµÄ·¾¶±äÁ¿(Òª·ÖÇ°ºó˳Ðò) PATH=/usr/bin : /etc
PS1 shellµÄÖ÷Ìáʾ·û PS1='$PWD>'
PS2 shellµÄµÚ¶þÌáʾ·û PS2='>'
PWD µ±Ç°µÄ¹¤×÷Ŀ¼
TMOUT ÎÞÃüÁîÊäÈëÍ˳öµÄµÈ´ýʱ¼ä(Ãë) TMOUT=200
TERM ÖÕ¶ËÀàÐÍ TERM=ibm3151
HOME Óû§µÄÖ÷Ŀ¼ HOME=/home/user/
EDITOR ȱʡµÄ±à¼­Æ÷ EDITOR=/usr/bin/vi
ÓÃÃüÁîset¿ÉÁгöµ±Ç°µÄ±äÁ¿¡£
ÎļþϵͳºÍÂß¼­¾í
Ò»¡¢AIXϵͳµÄÊý¾Ý´æ´¢·½Ê½
ÔÚAIXÖУ¬ÊÇÕâÑùÀ´×éÖ¯¶à¸öÓ²ÅÌÉϵÄÊý¾ÝµÄ£º
ÎïÀí¾íPV µ¥¶ÀµÄÓ²ÅÌ /dev/hdisk0 , /dev/hdisk1... ¿Éϸ·ÖΪ
ÎïÀí·ÖÇøPP
¾í×éVG Ò»¸ö»ò¶à¸öÓ²ÅÌ×é³É¡£
´ÓÂß¼­ÉϽ²£¬ÔÚÒ»¸ö¾í×éVGÖУ¬¿É¶¨ÒåÈô¸É¸öÂß¼­¾íLV¡£ËüÒ²¿Éϸ·ÖΪÂß¼­·ÖÇøLP¡£ÕâЩÂß¼­¾íLV¿ÉÓÃ×÷·ÖÒ³¿Õ¼ä(Paging Space)¡¢ÏµÍ³ÈÕÖ¾(SystemLog)£¬×î¶àµÄÊÇÓÃ×÷ÎļþϵͳFileSystemµÄÔØÌ壬ÕâÖÖÎļþϵͳ³ÆΪÈÕÖ¾Îļþϵͳ(JournaledFileSystem)¡£
ÔÚϵͳ³õʼ°²×°Ê±£¬Ò»¸öÃûΪrootvgµÄ¾í×é±»ÓÃÀ´×°ÔØBOS¡£ÔÚrootvg¾í×éÖУ¬ÓÐһЩÂß¼­·ÖÇø±»ÓÃÀ´×°ÔØһЩÌض¨µÄϵͳÊý¾Ý£¬ÀýÈçÆô¶¯Êý¾Ýhd5¡¢ÈÕÖ¾¼Ç¼(JL)hd8¡¢·ÖÒ³¿Õ¼ä(PagingSpace)hd6µÈ¡£ÕâÑùrootvg×ÜÊDZ»¼¤»îµÄ¡£
ÔÚÿһ¸ö¾í×éVGÄÚµÄÎïÀí¾íPVÉÏ£¬ÖÁÉÙÒ»¸ö»ò¶à¸öºÜÖØÒªµÄÊý¾ÝÇø--¾í×éÃèÊöÇø(VGDA)¡£Í¬Ò»¸ö¾í×éVGµÄ¸÷¸öÎïÀí¾íPVÉϵÄVGDAÄÚÈÝ£¬Õý³£Ê±Ó¦¸ÃÊÇÒ»Öµġ£
ÔÚÒ»¸ö¾í×éVGÖУ¬Óû§¿ÉÒÔ¶¨ÒåÈô¸É¸öÂß¼­¾íLV£¬Ò»¸öÂß¼­¾íÔÚÎïÀíÉÏ¿ÉÄÜÊDz»Á¬ÐøµÄ£¬ÓпÉÄÜ¿çÔ½ÁËÒ»¸ö¾í×éÖеĶà¸öÎïÀí¾í¡£¿ÉÓÃmklvÀ´´´½¨¡£Ò»¸öÂß¼­¾íµÄ´óС¿ÉÀûÓÃÂß¼­·ÖÇøµÄÊýÄ¿À´È·¶¨¡£Ã¿¸öÂß¼­·ÖÇø×î¶à¿ÉÓÐÈý¸öÎïÀí·ÖÇøÓëÖ®¶ÔÓ¦£¬¶à¸öÎïÀí·ÖÇø¶ÔÓ¦ÓÚÒ»¸öÂß¼­·ÖÇøµÄÇé¿ö£¬Í¨³£ÓÃÓÚ¶ÔÂß¼­¾íÉú³É¾µÏñ¡£
ÕâÑù¾ÍÓÐÕâôһЩ¸ÅÄ
¾í×éVG
ÎïÀí¾íPV
ÎïÀí·ÖÇøPP
Âß¼­¾íLV
Âß¼­·ÖÇøLP
³£ÓÃÃüÁ
# lsvgÏÔʾ¾í×éVGµÄÐÅÏ¢£¬ÀýÈ磺
(1) lsvg -o
(2) lsvg
(3) lsvg vg02
(4) lsvg -l vg02
#varyoffvgʹ¾í×éVG²»±»¼¤»î£¬ÀýÈ磺
(1) varyoffvg cx_vg
#varyonvgʹ¾í×éVG±»¼¤»î£¬ÀýÈ磺
(1) varyonvg cx_vg
# lspvÏÔʾÎïÀí¾íPVµÄÐÅÏ¢£¬ÀýÈ磺
(1) lspv hdisk0
(2) lspv -p hdisk2
(3) lspv
hdisk0 0000000012345678 rootvg
hdisk1 10000BC876543258 rootvg
hdisk2 ABCD000054C23486 cx_vg
# lslv ÏÔʾÂß¼­¾íLVµÄÐÅÏ¢£¬ÀýÈ磺
(1) lslv lv03
(2) lslv -p hdisk2
(3) lslv -l lv03
# lspsÏÔʾPaging spaceµÄÐÅÏ¢£¬ÀýÈ磺
(1) lsps -a
Page Space Phy Vol Vol Grp Size %Used Active Auto
hd6 hdisk0 rootvg 1024MB 30 yes yes
(2) lsps -s
# lsfsÏÔʾÎļþϵͳµÄÐÅÏ¢£¬ÀýÈ磺
(1) lsfs
(2) lsfs -v jfs
¶þ¡¢ÎļþϵͳµÄ¹ÜÀí
1¡¢Îļþϵͳ¸ÅÊö
ÔÚAIXÖУ¬ÎļþϵͳÊÇÓÉÈô¸öÎļþºÍĿ¼×é³ÉµÄ·Ö¼¶Ê÷Ðνṹ¡£Îļþϵͳͨ¹ýÒ»¸ö¹Ò½Óµãmount point°Ñ×Ô¼ºÁ¬½Óµ½ÏµÍ³µÄÒ»¸ö½ÚµãÉÏ£¬ÕâÑùÎļþϵͳ¿ÉÒÔ·½±ãµØ°²×°¡¢²ðжºÍ±¸·Ý¡¢»Ö¸´¡£
ÔÚAIXÖУ¬Ò»¸öÎļþϵͳ×ÜÊǶÀÕ¼Ò»¸öÂß¼­¾í£¬Òò´ËϵͳÂß¼­¾í¶ÔÎļþϵͳÓÐÒ»¶¨µÄÏÞÖÆ¡£µ±È»£¬Âß¼­¾í¼È¿É×öΪһ¸öÎļþϵͳµÄÔØÌ壬Ҳ¿É×öΪËüÓá£AIXÖ§³ÖµÄÎļþϵͳÀàÐÍÓÐÈÕÖ¾Îļþϵͳjfs£¬ÍøÂçÎļþϵͳnfs£¬¹âÅÌÎļþϵͳcdrfsµÈµÈ¡£
¶ÔÓÚÒ»°ãµÄÈÕÖ¾Îļþϵͳ£¬ÏµÍ³ÔÚ/etc/filesystemsÎļþÖж¼ÓоßÌåµÄ¶¨Òå¡£ÀýÈ磺
/:
dev=/dev/hd4
vol="root"
mount=automatic
check=false
vfs=jfs
log=/dev/hd8
type=bootfs
/home:
dev=/dev/hd1
vol="/home"
mount=true
check=true
vfs=jfs
log=/dev/hd8
/home/user:
dev=/dev/lv00
vfs=jfs
log=/dev/hd8
mount=false
check=true
options=rw
ÆäÖÐcheckÊôÐÔ±íʾÈç¹ûʹÓÃfsckÃüÁî¼ì²âÎļþϵͳ£¬´ËÎļþÊÇ·ñÔÚ¼ì²âÖ®ÁС£AIXÔÚϵͳÆô¶¯Ê±Òªµ÷ÓÃfsckÀ´¼ì²âÖ¸¶¨ÎļþϵͳµÄÍêÕûÐΡ£
mountÊôÐÔÓÐÈý¸öÑ¡Ïautomatic±íʾÔÚϵͳ³õÆôʱ´ËÎļþϵͳ½«±»×Ô¶¯ÔØÈ룬Ïà·´ÔòÓÃfalse±íʾ£»true±íʾʹÓÃmount allÃüÁîÀ´¼ÓÔØ¡£
vfs±íʾÎļþϵͳµÄÀàÐÍ£¬ÈçJFS¡¢NFS¡£
log±íʾ´ËÎļþϵͳµÄÈÕÖ¾¼Ç¼Êý¾Ý½«Ð´µ½µÄÂß¼­¾í¡£
options±íʾ´ËÎļþϵͳµÄ²Ù×÷ÊôÐÔ£¬Èçrw±íʾΪ¿É¶Áд¡£
2¡¢ÎļþϵͳµÄ½á¹¹
ÔÚAIXÖУ¬ÓÐÎå¸öÌض¨µÄÎļþϵͳ£¬ËüÃÇÊÇϵͳ°²×°Ê±×Ô¶¯Éú³ÉµÄ¡£
(1)¡¢/ rootÎļþϵͳ°üÀ¨AIXϵͳÔËÐеÄһЩ¹Ø¼üÐÔµÄÎļþºÍĿ¼£¬ÆäÖбȽÏÖØÒªµÄÓÐĿ¼/etc£¬/dev£¬/usr£¬/var£¬/home£¬Îļþ/unixµÈ¡£
ÔÚ/etcĿ¼Ï£¬°üÀ¨ÁËÓйØϵͳµÄһЩÅäÖÃÎļþºÍÃüÁîÎļþ¡£
ÔÚ/devĿ¼Ï£¬°üº¬ÁËËùÓеÄÓ²¼þÉ豸µÄÂß¼­Îļþ¡£
/unixÎļþÔò°üº¬ÁËUNIX²Ù×÷ϵͳµÄºËÐijÌÐò
(2)¡¢/usrÎļþϵͳÊÇAIXÖÐ×îÅÓ´óµÄÒ»¸öÎļþϵͳ£¬Ëü¹Ò½ÓÔÚrootÎļþϵͳµÄ/usrĿ¼Ï¡£
Ëü°üÀ¨µÄÄÚÈÝ×î³£¼ûµÄÓУº
/usr/binĿ¼°üÀ¨Óи÷ÖÖ¶þ½øÖÆÃüÁîÎļþºÍSHELL½Å±¾³ÌÐò¡£
/usr/libĿ¼ÖÐÖ÷ÒªÊǸ÷ÖÖÓëƽ̨Î޹صĿâÎļþ¡£
/usr/lppĿ¼Ï°üº¬ÁË°²×°µ½AIXÖеĸ÷ÖÖÓ¦ÓÃÈí¼þ²úÆ·¡£
/usr/sbinĿ¼Ìṩ¸ø¹ÜÀíÔ±¸÷ÖÖÓÃÓÚϵͳ¹ÜÀíµÄ¹¤¾ß¡£
(3)¡¢/varÎļþϵͳ°üÀ¨ÁËһЩÓйصç×ÓÓʼþ¡¢ÈÕÖ¾¼Ç¼¡¢Ê¼þ¸ú×ٵȷ½ÃæµÄһЩӦÓóÌÐòµÄÎı¾¼Ç¼¡£ÀýÈ磺
/var/adm/wtmpÓû§µÄµÇ¼¼Ç¼
/var/newsϵͳµÄÏûÏ¢¼Ç¼
/var/tmp/*ÓйصÄÁÙʱÎļþ
/var/adm/sulogÓû§Ê¹ÓÃSUÃüÁîµÄ¼Ç¼
(4)¡¢ÎªÁ˱£´æһЩÁÙʱÎļþ£¬AIXÖÐÉèÓÐÒ»¸öרÃŵÄÎļþϵͳ/tmp¡£
(5)¡¢/homeÎļþϵͳÔòÊÇרÃÅÓÃÀ´·ÅÖÃÓû§Êý¾Ý¡£
³ýÁËÕâЩÓÉϵͳ½¨Á¢µÄÎļþϵͳÍ⣬Óû§Ò²¿ÉÒÔÓÃsmit mkfsÀ´½¨Á¢×Ô¼ºµÄÎļþϵͳ¡£
3¡¢¹ÜÀíÎļþϵͳ
#smit fs
File Systems
List All File Systems
List All Mounted File Systems
Add/Change/Show/Delete File Systems
Mount a File Systems
Mount a Group of File Systems
Unmount a File Systems
Unmount a Group of File Systems
Verify a File Systems
Backup a File Systems
Restore a File Systems
List Contents of a Backup
Èý¡¢Âß¼­¾íµÄ¹ÜÀí
¶ÔÓÚÂß¼­¾í£¬ÔÚ/devÖжÔÓ¦Ò»¸öÁ÷¸ñʽºÍÒ»¸ö¿é¸ñʽµÄÂß¼­ÎļþÃèÊö£º
brw-rw---- 1 root system 19,0 Apr 01 12 : 30 /dev/hdisk0
crw-rw---- 1 root system 19,0 Apr 01 12 : 30 /dev/rhdisk0
brw-rw---- 1 root system 10,6 Apr 01 12 : 30 /dev/hd2
crw-rw---- 1 root system 10,6 Apr 01 12 : 30 /dev/rhd2
ËüÖ÷Òª°üÀ¨ÓУº
Journaled file systemÈÕÖ¾Îļþϵͳ
Paging space·ÖÒ³¿Õ¼ä
Journal logÈÕÖ¾¼Ç¼
Boot Logical VolumeÒýµ¼Âß¼­¾í
Raw deviceÂãÉ豸
Dump Space
ÎÒÃÇ¿ÉÒÔÓÃsmit lvmÀ´½øÐйÜÀíºÍÅäÖÃ
ËÄ¡¢·ÖÒ³¿Õ¼ä
·ÖÒ³¿Õ¼äÊÇλÓÚÓ²ÅÌÉϵĹ̶¨¿Õ¼ä£¬ÆäÖб£´æ×ÅһЩλÓÚÐéÄâÄÚ´æÖÐÇÒµ±Ç°²»±»·ÃÎʵÄÊý¾Ý¡£·ÖÒ³¿Õ¼äÒ²¿É³ÆΪ½»»»¿Õ¼ä£¬Êµ¼ÊÉϾÍÊÇÒ»¸öÂß¼­¾í¡£
ÔÚʵ¼ÊϵͳÔËÐÐÖУ¬Èç¹ûϵͳʵÄÚ´æ̫С£¬ÄÇôλÓÚʵÄÚ´æÖÐ×î½üûÓб»·ÃÎʵ½µÄÊý¾Ý½«±»´ÓʵÄÚ´æÒƵ½·ÖÒ³¿Õ¼äÖУ¬ÒÔ±ãΪÆäËüµÄ¼±ÐèÒªÄÚ´æ×ÊÔ´µÄ×÷ÒµÊͷſռ䡣
ÔÚAIXÖУ¬È±Ê¡µÄ·ÖÒ³¿Õ¼äÊÇ/dev/hd6Âß¼­¾í¡£
¶ÔÓÚÒ»¸öϵͳÀ´Ëµ£¬·ÖÒ³¿Õ¼äµÄ¹ÜÀíͨ³£ÊǶÔÒÔÏÂÁ½¸ö·½ÃæÀ´½øÐеģº
(1)¡¢·ÖÒ³¿Õ¼äµÄÊýÁ¿
Ì«¶àµÄ·ÖÒ³¿Õ¼äÊÇÒ»ÖÖ²»±ØÒªµÄÀË·Ñ£¬µ«Ì«ÉÙÔò»áÓ°ÏìϵͳµÄÔËÐÐЧÂÊ£¬¸üÓÐÉõÕß¿ÉÄÜ»áÔì³ÉϵͳÖÕÖ¹¡£½¨ÒéÔÚ30%~70%Ö®¼ä¡£
(2)¡¢·ÖÒ³¿Õ¼äµÄ·Ö²¼
·ÖÒ³¿Õ¼äÊDZ»Æµ·±·ÃÎʵÄÇøÓò£¬ËùÒÔÓ¦µ±¾¡Á¿·ÅÔÚÓ²Å̵ÄÖÐÐÄ¡£
Î塢ϵͳµÄ±¸·ÝÓë»Ö¸´
Êý¾ÝµÄ±¸·ÝºÍ»Ö¸´ÊÇUNIXϵͳÖÐÒ»¸öÖØÒªµÄ¹¤×÷¡£ÔÚ±¸·Ý¹ý³ÌÖУ¬³£³£ÒªÊ¹ÓÃcompressºÍpackÃüÁî¶ÔÊý¾Ý½øÐÐѹËõ¡£»Ö¸´Ê±ÓÃuncompress¡¢unpack½âѹËõ¡£
Êý¾Ý±¸·Ý´Ó·½Ê½ÉÏÀ´ËµÓÐÈçÏÂÈýÖÖ£º
ϵͳ±¸·Ý ±£ÁôÕû¸ö²Ù×÷ϵͳµÄ±¸·ÝÓ³Ïñ£¬¿ÉÓÃÀ´»Ö¸´²Ù×÷ϵͳ¡£
È«±¸·Ý ±£ÁôËùÓÐÓû§µÄÈ«²¿Êý¾ÝÎļþºÍÅäÖÃÐÅÏ¢¡£
Ôöǿʽ±¸·Ý Ö»¶ÔÉϴα¸·ÝºóµÄÐ޸IJ¿·Ö×÷±¸·Ý£¬±¸·ÝËٶȿ졣
ÔÚϵͳ°²×°Íê±Ïºó»òϵͳÓÐÈκÎÐ޸ģ¬¶¼Ó¦¸Ã¶ÔROOTVG×÷ϵͳ±¸·Ý£¬·½·¨ÊÇ£º
# smit mksysb
[TOP] [Entry Fields]
WARNING: Execution of the mksysb command will
result in the loss of all material
previously stored on the selected
output medium. This command backs
up only rootvg volume group.
* Backup DEVICE or FILE [] +/
Create MAP files? no +
EXCLUDE files? no +
List files as they are backed up? no +
Generate new /image.data file? yes +
EXPAND /tmp if needed? no +
Disable software packing of backup? no + [MORE...2]
Esc+1=Help Esc+2=Refresh Esc+3=Cancel Esc+4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
½øÈësmit½çÃæºó£¬°ÑdeviceÒ»À¸Éè³É´Å´ø»ú£¬È»ºó°´»Ø³µ¾ÍÐÐÁË¡£
¶ÔÓÚ·Çrootvg¾í×飬¿ÉÓÃsavevgÃüÁî»òsmit savevgÀ´×÷±¸·Ý¡£¶ÔÓÚÒ»°ãÓû§¿ÉÓÃbackupÃüÁîÀ´½øÐС£ÀýÈ磺
backup [-u] [-level] [-f device] [file system]
ÆäÖÐÔÊÐíʹÓòÎÊýʵÏÖÔöǿʽ±¸·Ý£¬Èç-0£¬-1£¬-2£¬...£¬µÈµÈ£¬ÆäÖÐÁ㼶±¸·Ý¼´±íʾȫ±¸·Ý¡£³ý´ËÒÔÍ⣬AIX»¹ÌṩÁËtar¡¢cpio¡¢dd¡¢copy¡¢flcopy¡¢tctlµÈ£¬Çë²é¿´Ëæ»úµÄCD-ROMÎļþ¡£
×¢Ò⣺Êý¾Ý¿âµÄ±¸·ÝӦʹÓÃÆäÌṩµÄ·½·¨£¬²ÅÄܱ£Ö¤Êý¾Ý¿âµÄÍêÕûÐÔ¡£
***************************AIX»ù´¡½Ì³Ì£¨Ï£©************************
É豸µÄ¹ÜÀíºÍʹÓÃ
Ò»¡¢ÎïÀíÉ豸ºÍÂß¼­É豸
1¡¢ÎïÀíÉ豸ÊÇÖ¸ÒÔijÖÖ·½Ê½Óë¼ÆËã»úϵͳÏàÁ¬µÄʵ¼ÊÓ²¼þ¡£ÀýÈçÏÔʾÆ÷¡¢Öնˡ¢´Å´ø»úµÈ¡£
2¡¢Âß¼­É豸ÊÇÓû§»òÓ¦ÓóÌÐò·ÃÎÊÎïÀíÉ豸µÄ½çÃ棬Óû§»òÓ¦ÓóÌÐòͨ¹ýÂß¼­É豸À´·ÃÎÊÎïÀíÉ豸¡£
3¡¢ÔںܶàÇé¿öÏ£¬Ò»¸öÎïÀíÉ豸»á¶ÔÓ¦¶à¸öÂß¼­É豸£¬ÀýÈ磺
/dev/fd0
/dev/fd0.18
/dev/fd0h
/dev/fd0l
/dev/rfd0
/dev/rfd0.18
/dev/rfd0h
/dev/rfd0l
ÒÔÉÏËùÓеÄÂß¼­É豸ȫ²¿¶ÔÓ¦ÓÚͬһ¸öÎïÀíÉ豸(ÈíÅÌÇý¶¯Æ÷)¡£´ËÍ⣬ϵͳÖÐÓÐһЩÂß¼­É豸ֻÊÇһЩÐéÄâÉ豸£¬ËüÃDz»¶ÔÓÚÈκÎʵ¼ÊµÄÎïÀíÉ豸£¬ÀýÈç/dev/errorºÍ /dev/null¡£
4¡¢¿éÉ豸ÊÇÒ»ÖÖ½«ÐÅÏ¢´æ·ÅÔÚ¶¨³¤¿éÖеÄÉ豸¡£¿éÉ豸ÊÇÒ»ÖÖËæ»ú·ÃÎÊÉ豸£¬Óû§¿ÉÒÔËæʱ·ÃÎÊÉ豸ÖеÄÈÎÒâÒ»¿é¡£³£¼ûµÄ¿éÉ豸ÓУº
cd0 Ö»¶Á¹âÇý
fd0 ÈíÅÌÇý¶¯Æ÷
hd1 lv00 Âß¼­¾í
hdisk0 Ó²ÅÌ
5¡¢×Ö·ûÉ豸ÊÇÒ»ÖÖԭʼµÄ¡¢ÃæÏò×Ö·ûÁ÷µÄ˳Ðò´æÈ¡É豸£¬Ã¿´Î°´Ë³Ðò¶Áдһ¸ö×Ö·û¡£³£ÓõÄ×Ö·ûÉ豸ÓУº
console, lft0, tty ÖÕ¶Ë
rmt0 ´Å´ø»ú
tok0, ent0 Íø¿¨
mem ÄÚ´æ
rhd1, rlv00 Âß¼­¾í
rhdisk0 ÎïÀí¾í
¶þ¡¢É豸µÄ·ÖÀà²ã´Î
1¡¢ÔÚAIXϵͳÖУ¬°´Àà¡¢×ÓÀà¡¢ÐͺÅÈý¸ö²ã´Î¶ÔÉ豸½øÐзÖÀà¡£
Àà(class)ÊÇ°´É豸µÄ¹¦ÄÜ»®·ÖµÄ£¬ÀýÈç´òÓ¡»úÀà¡¢Ó²ÅÌÀà¡¢ÊÊÅ俨ÀàµÈ¡£
×ÓÀà(subclass)ÊÇ°´É豸µÄijÖÖÏàËÆÐÔ»®·ÖµÄ£¬ÀýÈçÊÊÅ俨Àà¿É·ÖΪPCI×ÓÀàºÍMCA×ÓÀà¡£
ÐͺÅ(type)ÊÇ°´É豸µÄ»úÐÍ»òÉú²ú³§¼Ò»®·ÖµÄ£¬ÀýÈç´Å´ø»ú¿É·ÖΪ4mm12gb¡¢ 8mm20gbµÈÐͺš£
2¡¢»ñÈ¡É豸ÐÅÏ¢
# lsdev [-option]
ÔÚAIXϵͳÖУ¬ÓÐÁ½¸ö¹ØÓÚÉ豸µÄÊý¾Ý¿â----PredefinedÓëCustomized¡£PredefinedÊý ¾Ý¿âÖмǼÁËAIXϵͳ±¾Éí¿ÉÒÔÖ§³ÖµÄËùÓÐÉ豸ÖÖÀࣻCustomizedÊý¾Ý¿âÖÐÔò¼Ç¼ ÁËÄ¿Ç°ÄãµÄϵͳÒÑÅäÖÃ/°²×°µÄÉ豸ÀàÐÍ¡£
CustomizedÊý¾Ý¿âÖÐÓÖÓÐÁ½ÀàÉ豸¡£Ò»ÖÖ½ÐDefinedÉ豸£»ÁíÒ»ÖÖ½ÐAvailableÉ豸¡£ DefinedÉ豸ÊÇÖ¸ËüµÄÇý¶¯³ÌÐòÒÑ°²×°£¬µ«ÏµÍ³»¹Ã»ÓÐÕÒµ½¸ÃÉ豸¡£AvailableÉ豸Ôò ÊÇָϵͳÒÑÕÒµ½¸ÃÉ豸¼°ÆäÇý¶¯³ÌÐò£¬Òò´ËÄã¿ÉÒÔÖ±½ÓʹÓÃÕâ¸öÉ豸¡£
ÕâÌõÃüÁîµÄ²ÎÊýÈçÏ£º
-P£º²é¿´ÏµÍ³PredefinedÊý¾Ý¿âÖеÄÉ豸
-H£ºÊä³öʱ£¬ÔÚµÚÒ»ÐмÓÉϸ÷ÁеÄTitle
-c£º Ö¸³öÒª²éѯµÄÉ豸ÀàÐÍ
-C£º²é¿´ÏµÍ³CustomizedÊý¾Ý¿âÖеÄÉ豸
Àý×Ó£º
# lsdev -PH
²é¿´ÏµÍ³¿ÉÒÔÖ§³ÖµÄËùÓÐÉ豸£¬ÆäÊä³öÈçÏ£º
classtype subclass description
adapterethernet isa IBM ISA Ethernet Adapter
adapterppa sio Standard I/O Parallel Port Adapter
adaptertokenring mca Token-Ring High-Performance Adapter
disk 400mb scsi 400MB SCSI Disk Drive
disk osdisk scsi Other SCSI disk
memory memory sys Memory Card
printerosp rs232 Other serial printer
tape 150mb scsi 150MB ?-Inch Tape Drive
tty tty rs232 Asynchronous Terminal
adapterner810 pci Standard SCSI I/O Controller
. . . . . .
# lsdev -Pc tape
²é¿´ÏµÍ³¿ÉÒÔÖ§³ÖµÄËùÓдŴø»úÀàÐÍ£¬ÆäÊä³öÈçÏ£º
tape1200mb scsi1.2GB ?-Inch Tape Drive
tape150mbscsi150MB ?-Inch Tape Drive
. . . . . .
# lsdev -CH
²é¿´ÏµÍ³ÄÚ¸÷¸öÉ豸µÄÐÅÏ¢£¬ÎÒÃÇ¿ÉÒÔ¿´µ½ÈçÏÂÐÅÏ¢£º
namestatuslocationdescription
sys0Available00-00System Object
bus0Available00-00PCI Bus
bus1Available00-10ISA Bus
ppa0Available00-00-0PStandard I/O Parallel Port Adapter
lp0Available00-00-0P-00IBM 4201 Model Proprinter II
sa0Available00-00-S1Standard I/O Serial Port 1
tty0Available00-00-S1-00Asynchronous Terminal
mem0Available00-0D16MB Memory Card
scsi0Available00-01SCSI I/O Controller
hdisk0Available00-01-00-0,0400MB SCSI Disk Drive
rmt0Defined 00-01-00-5,C150MB ?-Inch Tape Drive
ent0Available00-02Ethernet Adapter
# lsdev -Cc memory
²é¿´ËùÓÐÊôÓÚmemoryÉ豸µÄÐÅÏ¢£¬ÆäÊä³öÈçÏ£º
mem0Available00-0D16MB Memory Card
mem1Available00-0432MB Memory Card
3¡¢»ñÈ¡É豸µÄ¾ßÌåÐÅÏ¢
# lsattr [-option] [resource name]
ÕâÌõÃüÁîÊÇÓÃÀ´»ñȡijһÉ豸µÄ¾ßÌåÐÅÏ¢µÄ¡£
ÿ¸öÂß¼­É豸ÔÚϵͳÖж¼ÓÐÒ»¸ö Location Code £¬Õâ¸öºÅÂëÒòÉ豸µÄÀàÐͼ°ÓëÖ®Ëù Á¬µÄÊÊÅ俨¶ø¶¨¡£
ÕâÌõÃüÁîµÄ²ÎÊýÈçÏ£º
-C£º´ÓODM¿âÖÐÌáÈ¡customizedÉ豸µÄÐÅÏ¢¡£
-E£º¿´É豸µÄ¾ßÌåÊôÐÔ¡£
-l £º ÁгöÂß¼­É豸Ãû¡£
-c £º °´ÀàÀ´ÁгöÉ豸¡£
Àý×Ó£º
# lsattr -El sys0
²é¿´ÏµÍ³±¾ÉíµÄÅäÖÃÐÅÏ¢¡£ÆäÊä³öÈçÏ£º
keylocknormalState of system keylock at boot timeFalse
maxbuf20Maximum number of pages in block
I/O BUFFER CACHETrue
4¡¢ÏÔʾϵͳÅäÖá¢Õï¶Ï¡¢VPD(vital product data)µÄÐÅÏ¢
# lscfg
ÀýÈ磺
(1) lscfg
INSTALLED RESOURCE LIST
The following resources are installed on your machine.
+/- = Added/Deleted from Diagnostic Test List.
* = NOT Supported by Diagnostics.
+ sysplanar0 00-00 System Planar
+ fpa0 00-00 Floating Point Processor
+ mem0 00-0A Memory Card
+ mem1 00-0B Memory Card
+ ioplanar0 00-00 I/O Planar
* f2bus0 00-00 Micro Channel Bus
+ rs2320 00-01 RS232 Card
+ tty0 00-01-0-01 RS232 Card Port
- tty1 00-01-0-02 RS232 Card Port
(2) lscfg -v
INSTALLED RESOURCE LIST WITH VPD
The following devices are installed in your system.
sysplanar0 00-00 System Planar
Part Number.........342522
EC Level............254921
Serial Number.......353535
fpa0 00-00 Floating Point Processor
mem0 00-0A Memory Card
EC Level............990221
Èý¡¢É豸µÄ״̬
ÔÚAIXÖУ¬É豸¿ÉÒÔ´¦ÔÚÏÂÁÐÈýÖÖ״̬֮һ£º
1¡¢Undefined䶨Òå״̬
Èç¹ûÉ豸´¦ÓÚ´Ë״̬£¬ÔòϵͳûÓиÃÉ豸µÄÈκÎÐÅÏ¢¡£
2¡¢DefinedÒѶ¨Òå״̬
´¦ÓÚ´Ë״̬£¬ËµÃ÷ϵͳÒѾ­´æÓиÃÉ豸µÄÈ«²¿ÐÅÏ¢£¬²¢ÒѾ­¸øÉ豸·ÖÅäºÃÂß¼­É豸ÃûºÍ¶Ë¿Ú£¬µ«µ±Ç°É豸»¹²»Äܱ»Ê¹Óá£
3¡¢Available¿ÉÓÃ״̬
´¦ÓÚ´Ë״̬µÄÉ豸Äܱ»Õý³£Ê¹Óá£
É豸¿ÉÒÔÔÚÕâÈýÖÖ״̬֮¼ä½øÐÐת»»£¬¿Éͨ¹ýÃüÁîmkdev -dlºÍ rmdev -dlÀ´½øÐУ¬»òͨ¹ýsmit devÀ´ÊµÏÖ¡£
ÀýÈ磺
(1) mkdev -l rmt0
rmt0 Available
(2) rmdev -l rmt0
rmt0 Defined
(3) rmdev -dl rmt0
rmt0 deleted
ËÄ¡¢´®ÐÐÉ豸
´®ÐÐÉ豸ÊÇÓëϵͳ´®¿ÚÏàÁ¬µÄÉ豸£¬Ò»°ãÐèÒªÊÖ¹¤ÅäÖá£
1¡¢ÏÔʾËùÓÐÒѶ¨ÒåµÄTTYÉ豸
lsdev -Cctty
smit tty
2¡¢Ôö¼ÓÒ»¸öTTYÉ豸
smit tty
-Add a TTY
-TTY (rs232 rs422)
-Parent Adapter(sa0 Available 00-00-s1 Standard I/O Serial Port1)
(sa1Available 00-00-s2 Standard I/O Serial Port2)
(sa2 Available 00-03-11 8 port Asynchronous Adapter)
Add a TTY
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
TTY type tty
TTY interface rs232
Description Asynchronous Terminal
Parent adapter sa0
* PORT number [] +
Enable LOGIN disable +
BAUD rate [9600] +
PARITY [none] +
BITS per character [8] +
Number of STOP BITS [1] +
TIME before advancing to next port setting [0] +#
TERMINAL type [dumb]
FLOW CONTROL to be used [xon] + [MORE...31]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
ÔÚÕâ¸ö¶Ô»°¿òÖУ¬ÐëÌîдPORT numberÒ»ÏʹÓÃF4¼üµÃµ½Ñ¡ÏîÁÐ±í£¬°´ËùÐèµÄÀ´Ñ¡³öºÏÊʵÄPORT number¡£
3¡¢ÓëTTYÓйصÄÃüÁî
pdisable [-a] [device]ÃüÁîÔÝʱ½ûÓÃÒ»¸öTTYÉ豸
penableÃüÁîÔò½â³ý¶ÔTTYÉ豸µÄ½ûÓÃ
stty [-a] [-g] [options]ÃüÁîÉèÖûòÏÔʾTTYÉ豸µÄÊôÐÔ
Îå¡¢´Å´ø»úºÍÈíÅ̵ÄʹÓÃ
1¡¢¸ñʽ»¯ÈíÅÌ
format -d /dev/rfd0
×¢Ò⣺ÔÚUNIXϵͳÖиñʽ»¯µÄÈíÅ̲»ÄÜÔÚDOSÖÐʹÓá£
2¡¢ÈíÅÌ¿½±´
flcopyÃüÁîÓÃÓÚ½«Ò»¸öÈíÅÌÖеÄÄÚÈÝ¿½±´µ½ÁíÒ»ÕÅÈíÅÌÉÏ¡£
3¡¢ÓÃÈíÅÌ»ò´Å´øת´æÎļþ
ʹÓÃcpioÃüÁî¿É½«Ó²ÅÌÎļþ¿½±´µ½´Å´ø»òÈíÅÌÉÏ¡£
ÀýÈ磬½«µ±Ç°Ä¿Â¼ÏÂËùÓÐÒÔCΪºó׺µÄÎļþ¿½±´µ½ÈíÅÌÉÏ£º
ls *.C | cpio -ov > /dev/rfd0
ÀýÈ磬½«µ±Ç°Ä¿Â¼µÄËùÓÐÎļþºÍ×ÓĿ¼¿½±´µ½ÈíÅÌÉÏ£º
find . -print | cpio -ov > /dev/rfd0
ʹÓÃcpioÃüÁî¿É½«Îļþ´ÓÈíÅÌ»ò´Å´ø¿½±´»Ö¸´µ½Ó²ÅÌÉÏ¡£
ÀýÈ磬½«ÈíÅ̵ÄÎļþ¿½±´µ½Ó²ÅÌ£º
cpio -iv < /dev/rfd0
ÀýÈ磬Áгöfd0µÄÎļþ£º
cpio -itr < /dev/rfd0
ÀýÈ磬½«ÈíÅ̵ÄÎļþ¿½±´µ½µ±Ç°Ä¿Â¼£º
cpio -idmv < /dev/rfd0
tarÃüÁî
tar cvf
tar xvf
tar tvf
4¡¢´Å´ø»úµÄÊôÐÔ
(1)¡¢¿é´óСblock-size
Êý¾ÝÔÚ´Å´øÉÏÊÇ°´¿éÀ´´æ·ÅµÄ£¬¿éÓë¿éÖ®¼äÓÐÒ»¶¨µÄ¼ä¸ô±êÖ¾¡£µ±¶Ô´Å´ø½øÐжÁд²Ù×÷ʱ£¬ÐèÒªÖªµÀ¿éµÄ´óС¡£½«¿é´óСÉèÖÃΪ½Ï´óµÄֵʱ¿ÉÒÔÏò´Å´øдÈë¸ü¶àµÄÐÅÏ¢£¬ÒòΪÕâÑù×ö»á¼õÉÙ¿éÓë¿éÖ®¼ä¼ä¸ôµÄÊýÄ¿¡£µ±¿é´óСÉèÖÃΪÁãʱ£¬±íʾ´Å´ø»úʹÓÿɱ䳤¶ÈµÄ¿é¡£
¿Éͨ¹ýsmit tape--Change/Show Characteristics of a Tape DriveÀ´ÉèÖûò²é¿´¿é´óС¡£
(2)¡¢»º³åÇøuse DEVICE BUFFERS during writes
µ±»º³åÇøÊôÐÔÉèΪYESʱ£¬Ó¦ÓóÌÐò½«Êý¾ÝдÈëÉ豸»º³åÇøºó¼´±»¸æÖªÍê³Éд²Ù×÷¡£µ±»º³åÇøÊôÐÔÉèΪNOʱ£¬Ö»Óе±Êý¾ÝÕæÕýдÈë´Å´øºó£¬Ó¦ÓóÌÐò²Å±»¸æÖªÍê³Éд²Ù×÷¡£´ËֵȱʡΪYES¡£
AIXµÄÍøÂçͨÐÅ
Ò»¡¢ÅäÖúÍÔËÐÐTCP/IP
1¡¢ÔÚÅäÖÃTCP/IPÇ°£¬ÐèÖªµÀ£º
Ö÷»úÃûºÍÓòÃû
IPµØÖ·ºÍ×ÓÍøÑÚÂë
·ÓÉÆ÷µÄIPµØÖ·
ÓòÃû·þÎñÆ÷µÄIPµØÖ·
smit tcpip
-Minimum Configuration & Startup
Minimum Configuration & Startup
To Delete existing configuration data, please use Further Configuration menus
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* HOSTNAME [ ]
* Internet ADDRESS (dotted decimal) [ ]
Network MASK (dotted decimal) [ ]
* Network INTERFACE en0
NAMESERVER
Internet ADDRESS (dotted decimal) [ ]
DOMAIN Name [ ]
Default GATEWAY Address [ ]
(dotted decimal or symbolic name)
Your CABLE Type N/A +
START Now no +
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
ÔÚÓòÖÐÊäÈëÕýÈ·µÄÖµ£¬°´ENTER¼ü¼´¿ÉÍê³ÉTCP/IPµÄÅäÖá£
Èç¹ûÖµÓб仯£¬µÚ¶þ´Î¿ÉÓÃsmit chinetÀ´ÉèÖá£ÀýÈ磺
smit chinet
[Entry Fields]
Network Interface Name en0
Internet ADDRESS (dotted decimal) []
Network MASK (dotted decimal) []
Current STAT up
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

2¡¢TCP/IPµÄÆô¶¯
¶þ¡¢TCP/IP³£ÓõÄÃüÁî
1¡¢ping
2¡¢telnet
3¡¢ftp
/etc/ftpusers
4¡¢netstatÏÔʾÍøÂç״̬£¬ÀýÈ磺
(1) netstat -in
(2) netstat -rn
Èý¡¢ÍøÂçÎļþϵͳNFS
NFSÊÇÒ»ÖÖÄܽϺù²ÏíÔ¶³ÌÎļþµÄ·½°¸¡£Ëü²ÉÓÿͻ§/·þÎñÆ÷½á¹¹£¬NFS·þÎñÆ÷Ìṩ¹²ÏíÎļþ¹©¿Í»§·ÃÎÊ£¬NFS¿Í»§Í¨¹ýÍøÂçÇëÇó·þÎñÆ÷µÄ×ÊÔ´¡£Ò»Ì¨Ö÷»ú¿Éͬʱ×÷ΪNFS·þÎñÆ÷ºÍNFS¿Í»§»ú¡£
1¡¢NFSµÄ·þÎñ½ø³Ì
NFS¿Í»§»úµÄ½ø³Ì£ºbiod, rpc.statd, rpc.locked
NFS·þÎñÆ÷µÄ½ø³Ì£ºrpc.mountd, nfsd, rpc.statd, rpc.lockd
2¡¢ÅäÖÃNFS·þÎñÆ÷
ÔÚÅäÖÃNFSÒÔÇ°£¬ÐèҪȷÈÏÒѾ­£º
°²×°ºÍÅäÖÃÁËTCP/IP
Ã÷È·ÁËÍøÂçÖÐÄÇЩÊÇNFS·þÎñÆ÷ºÍ¿Í»§»ú
È·¶¨ÁËNFS·þÎñÆ÷ÉÏÐèÒª¹²ÏíµÄĿ¼
smit nfs
-Network File System(NFS)
-Add a Directory to Exports List
Add a Directory to Exports List
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* PATHNAME of directory to export [ ] /
* MODE to export directory read-write +
HOSTS & NETGROUPS allowed client access [ ]
Anonymous UID [-2]
HOSTS allowed root access [ ]
HOSTNAME list. If exported read-mostly [ ]
Use SECURE option? no +
Public filesystem? no +
* EXPORT directory now, system restart or both both +
PATHNAME of alternate Exports file [ ]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
ÆäÖÐPATHNAME of directory to export±íʾ¹²Ïí³öÈ¥µÄĿ¼µÄ·¾¶
MODE to export directory±íʾ¹²ÏíĿ¼µÄģʽ
HOSTS & NETGROUPS allowed client access±íʾÔÊÐí·ÃÎʸù²ÏíĿ¼µÄ¿Í»§»úÃû£¬Èç¹û¿Õ°×£¬ÔòÔÊÐíËùÓеĿͻ§»ú·ÃÎÊ
3¡¢ÅäÖÃNFS¿Í»§»ú
(1)¡¢ÓÃnkdirÃüÁÁ¢Ò»¸ö±¾µØ°²×°µã
mkdir /home/mntpt
(2)¡¢Æô¶¯NFS¿Í»§½ø³Ì
smit mknfs
Start NFS
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* START NFS now, on system restart or both both +
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
(3)°²×°ÍøÂçÎļþϵͳ
mount server1:/export_file /home/mntpt
SMIT¹¤¾ß
SMIT(SMITTY)ΪÓû§ÌṩÁËÒ»¸öÁé»îµÄ¹¤¾ßÀ´¹ÜÀíϵͳ¡£ÏÂÃæ½éÉÜһЩSMITÖзûºÅºÍ¹¦ÄܼüµÄÒâÒå
* ËùÐèÒªµÄÖµ£¬Õâ¸öÓò±ØÐëÌîÈëÖµ
# Õâ¸öÓòÐèÒªÌîÈëÊý×Ö
/ Õâ¸öÓòÐèÒªÌîÈë·¾¶
X Õâ¸öÖµÐèÒªÌîÈëÒ»¸ö16½øÖƵÄÊý
£¿ Õâ¸öÖµ²»»áÏÔʾ
+ Ò»¸öÏÂÀ­Ê½ÁÐ±í£¬°´F4¼üÏÔʾÁбí
F1(ESC-1) ÏÔʾÉÏÏÂÎÄ°ïÖú
F2(ESC-2) Ë¢ÐÂ
F3(ESC-3) ×¢Ïú£¬·µ»ØÉÏÒ»¼¶²Ëµ¥
F4(ESC-4) ÁÐ±í£¬¸ø³ö¿ÉÑ¡µÄÁбíÖµ
F5(ECS-5) ³õʼ»¯£¬»Ö¸´Ò»¸öÊäÈëÓòµÄԭʼÊý¾Ý
F6(ESC-6) ÃüÁÏÔʾҪִÐеÄAIXÃüÁî
F7(ESC-7) ±à¼­£¬±à¼­Ò»¸öÏÂÀ­Ê½²Ëµ¥»òÏÂÀ­±íÖеÄÒ»Ïî
F8(ESC-8) ¾µÏñ£¬½«µ±Ç°µÄÆÁÄ»´æµ½Ò»¸öÎļþÖв¢½«µ±Ç°µÄ¿ìËÙ·¾¶ÏÔʾ³öÀ´
F9(ESC-9) Íâ¿Ç£¬Æô¶¯Ò»¸ö×ÓÍâ¿Ç
F10(ESC-10)Í˳ö£¬Á¢¼´Í˳öSMIT²Ëµ¥
ENTER ¿ªÊ¼Ö´Ðе±Ç°ÐÐ
/TEXT ÔÚÊä³öÖвéÕÒÎı¾
n²éÕÒÏÂÒ»¸ö³öÏÖÒª²éÕÒµÄÎı¾µÄµØ·½
SMITµÄÈÕÖ¾ÎļþÔÚ$HOMEĿ¼Ï£¬ÃûΪsmit.log£¬Ëü±£´æÁËËùÓб»·ÃÎʵIJ˵¥ºÍ¶Ô»°¿ò£¬»¹ÓÐËùÓб»Ö´ÐеÄÃüÁîºÍÊä³ö£¬ÒÔ¼°ÔËÐйý³ÌÖвúÉúµÄ´íÎó¡£smit.scriptÎļþÔò±£´æÁËSMITÖ´ÐеÄËùÓеÄAIXÃüÁî¡£

AIXϵͳµÄ°²×°
°²×°Ç°±ØÐëÒÑÂú×ãIBMµÄ×°»úÌõ¼þºÍËùÓеÄÓ²¼þÉ豸ÒÑÁ¬½ÓºÃ¡£
´ò¿ªÍâ½ÓÉ豸ºÍϵͳµÄµçÔ´£¬¼ÙÉè´Ó¹âÅÌÆô¶¯£¬ÔÚµçÔ´´ò¿ªÒÔºóϵͳ½«´Ó¹âÅÌÆô¶¯¡£
ÔÚÑ¡ÔñºÃ¿ØÖÆ̨ºÍ°²×°ËùÓõ½µÄÓïÑÔ»·¾³Ö®ºóϵͳ½«³öÏÖÌáʾÐÅÏ¢¹©Óû§Ñ¡ÔñËùÐèÒªµÄ¹¦ÄÜ
Welcome to Base Operating System
Installation and Maintenance
Type the numbers of your choice and press Enter. Choice indicated by>>>
1. Start Install now with Default Settings
2. Change/Show Installation Settings and Install
3. Start Maintenance Mode for System Recovery
88. Help?
>>>Choice[1]:
ÆäÖеÚÈýÏîÊÇΪÁËÐÞ¸´ÏµÍ³ÖгöÏÖµÄijЩ´íÎó¶øÉèÖõĵ¥Óû§»·¾³¡£
µÚÒ»ÏîÊÇÈç¹û²»Ï£Íû¸Ä¶¯ÈκÎȱʡÉèÖõĻ°£¬¾ÍÑ¡Ôñ1¿ªÊ¼°²×°¡£
µÚ¶þÏîÊǸü¸Ä»ò²é¿´ÏµÍ³°²×°µÄÉèÖá£ÔÚµÚ¶þÏîµÄ×Ӳ˵¥ÖУ¬ÓÐÈý¸öÑ¡Ïî¿ÉÒÔ±»¸Ä±ä£º
Installation Settings
Enter type 0 or press Enter to install with current settings, or type the number of the setting you want to change and press Enter.
1. System Settings
Method of installation-------------------------------------New and Complet Overwrite
Disk where you want to install----------------------------hdisk0
2. Primary Language Environment Settings ( After install )
Cultural Convention-----------------------------------C ( POSIX )
Language------------------------------------------------C ( POSIX )
Keyboard------------------------------------------------C ( POSIX )
3. Install Trusted Computing Base---------------------------no
0. Install with the settings listed above
88. Help?
99. Previous Menu
>>>Choice[1]:
ÆäÖÐÑ¡Ïî1ÊÇȫа²×°¡£Ê¹ÓÃÕâÖÖ·½·¨°²×°ÏµÍ³½«»á¸²¸ÇÓû§ËùÑ¡ÔñÄ¿±êÅÌÉϵÄËùÓÐÊý¾Ý¡£
Ñ¡Ïî2ÊÇǨÒÆ°²×°¡£ ÕâÖÖ·½·¨³£ÓÃÀ´×öϵͳÉý¼¶(ÀýÈç´ÓAIX3.2Éý¼¶µ½AIX4.1)£¬Ê¹ÓÃÕâÖÖ·½·¨°²×°Ê±£¬³ýÁËtmpÒÔÍâµÄËùÓÐÎļþϵͳµÄÄÚÈݶ¼»á±»±£Áô¡£µ«Ò»Ð©AIXÉ豸Çý¶¯µÄÈí¼þ±ØÐëÖØа²×°¡£
Ñ¡Ïî3ÊDZ£Áô°²×°¡£ Èç¹ûÓû§Ï£Íû±£Áôrootvg¾í×éÖеÄÓû§Êý¾Ý£¬Ôò¿ÉÑ¡ÔñÕâÖÖ°²×°·½·¨¡£´Ëʱ/usr¡¢/tmp¡¢/varºÍ/ÎļþϵͳÖеÄËùÓÐÊý¾Ý¶¼½«±»¸²¸Ç£¬ÏµÍ³°²×°Íêºó»¹ÐëÖØÐÂÅäÖá£
µ±ÒÔÉϲÎÊý¶¼Ñ¡ÔñÍêºó¾Í¿ÉÒÔ¿ªÊ¼°²×°ÏµÍ³ÁË¡£
ϵͳ°²×°Íêºó»á×Ô¶¯ÖØÐÂÆô¶¯£¬ÇÒ³öÏÖinstall_assistµÄ»­Ã湩Óû§½øÐлù±¾µÄÅäÖá£
ÆäËüʵÓõļ¼ÇÉ
1¡¢²é¿´Èí¼þ°æ±¾µÄÃüÁî
# oslevel
# lslpp -l
oslevel ÊÇÓÃÀ´²é¿´AIX²Ù×÷ϵͳµÄ°æ±¾¡£
¶ø lslpp -l ÊÇÓÃÀ´²é¿´ÏµÍ³¾ßÌåÿ¸öÎļþ°üµÄ°æ±¾¡£
Àý×Ó£º
# lslpp -l > lpp.txt
Ôò lpp.txt Öаüº¬ÈçÏÂÐÅÏ¢£º
Fileset Level State Description ----------------------------------------------------------------------------Path: /usr/lib/objrepos
IMNSearch.bld.DBCS 1.2.0.4 COMMITTED NetQuestion DBCS Buildtime Modules
IMNSearch.bld.SBCS 1.2.1.3 COMMITTED NetQuestion SBCS Buildtime Modules
IMNSearch.rte.DBCS 1.2.0.4 COMMITTED NetQuestion DBCS Search
Engine
IMNSearch.rte.SBCS 1.2.1.3 COMMITTED NetQuestion SBCS Search
Engine
IMNSearch.rte.httpdlite 1.1.1.1 COMMITTED NetQuestion Local HTTP
Daemon
Java.adt.docs 1.1.6.0 COMMITTED Java Documentation Java.adt.includes 1.1.6.4 COMMITTED Java Application Development Toolkit Includes

2¡¢²é¿´ËùÓгö´íÐÅÏ¢
ÔÚϵͳÔËÐÐʱ£¬Ò»Ð©ÏµÍ³´íÎó¼Ç¼»á¼Ç¼ÔÚ errlog ÖУ¬ÆäÖÐÓÐЩ´íÎó»¹»áÔÚÖÕ¶ËÉÏ ÏÔʾ³öÀ´£¬¼ì²é´íÎóÈÕÖ¾¿ÉÓÃÒÔÏÂÃüÁ
# errpt | more²é¿´ÏµÍ³ËùÓеļǼ
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
E85C5C4C 0426104399 P S CFGLFT SOFTWARE PROGRAM ERROR
2BFA76F6 0426104099 T S SYSPROC SYSTEM SHUTDOWN BY USER
9DBCFDEE 0426104399 T O errdemon ERROR LOGGING TURNED ON
192AC071 0426103999 T O errdemon ERROR LOGGING TURNED OFF
AA8AB241 0423132999 T O clstrmgr OPERATOR NOTIFICATION
ÆäÖÐ
IDENTIFIER Ϊ´íÎó±àºÅ£¬µ±ÐèÒª¼ì²éÏêϸÐÅϢʱ³£»áÓõ½¡£
TIME STAMP Ϊʱ¼ä±êÇ©£¬Ëü¼Ç¼µÄÊdzö´íʱ¼ä£¬
Æä¸ñʽ£ºÔÂÔÂÈÕÈÕʱʱ·Ö·ÖÄêÄê
T ΪType £¬Ëü¼Ç¼µÄÊÇ´íÎóÀàÐÍ
P £ºÎªÓÀ¾Ã´íÎó£¬ÐèÒýÆð×¢Òâ
T £ºÎªÁÙʱ´íÎó¡£
CΪClass£¬Ëü¼Ç¼µÄÊÇ´íÎóÀàÐÍ
H £º Hardware
S £º Software
O £º Errloger command messages
U £º undetermined
RESOURCE_NAME Ϊ´íÎóÀ´Ô´
DESCRIPTIONΪ´íÎóÃèÊö
²é¿´ÏµÍ³Ïêϸ¼Ç¼ÄÚÈÝ
# errpt -aj |pg
ÆäÖÐIDENTIFIERΪ´íÎó±àºÅ£¬Èç # errpt -aj 0426104399 | pg
²é¿´ÏµÍ³ËùÓеÄÓ²¼þ³ö´í¼Ç¼
# errpt -dH
3¡¢ÎļþϵͳµÄ²Ù×÷
(1) ¡¢ÁгöËùÓеÄÎļþϵͳ
# lsfs
ËüµÄ×÷ÓÃÊÇÁгöËùÓеÄÎļþϵͳ£¬ÆäÊä³öÈçÏ£º
Name Nodename Mount Pt VFS Size Options Auto
Accounting
/dev/hd4 -- / jfs 163840 -- yes
no
/dev/hd1 -- /home jfs 16384 -- yes
no
/dev/hd2 -- /usr jfs 2818048 -- yes
no
/dev/hd9var -- /var jfs 16384 -- yes
no
/dev/hd3 -- /tmp jfs 32768 -- yes
no
/dev/lv00 -- /ibmcxx jfs 835584 rw no
(2)¡¢ ÁгöËùÓÐ mount Á˵ÄÎļþϵͳ
# mount
ÆäÊä³öÈçÏ£º
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs Nov 16 12:47 rw,log=/dev/hd8
/dev/hd2 /usr jfs Nov 16 12:47 rw,log=/dev/hd8
/dev/hd9var /var jfs Nov 16 12:47 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Nov 16 12:47 rw,log=/dev/hd8
/dev/hd1 /home jfs Nov 16 12:49 rw,log=/dev/hd8
(3)¡¢ ²é¿´¸÷ÎļþϵͳµÄʹÓÃÇé¿ö
# df -k
ÆäÊä³öÈçÏ£º
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 81920 68568 17% 1724 5% /
/dev/hd2 1409024 430896 70% 28467 9% /usr
/dev/hd9var 8192 6540 21% 293 15% /var
/dev/hd3 16384 15352 7% 51 2% /tmp
/dev/hd1 8192 3820 54% 54 3% /home
(4) ¡¢Æô¶¯¡¢Í£Ö¹ºÍ¼ì²â HACMP
aÓÃ(#smit clstart)Æô¶¯ HACMP
bÓÃ(#tail -f /tmp/hacmp.out)¸ú×ÙÊä³ö
cÓÃ(#netstat -in)²é¿´ en0¡¢en1µÄ״̬,¿´ÊÇ·ñÒÑ´Ó boot µØÖ·Çл»³ÉserviceµØÖ·
dÓÃ(#lsvg -o) ²é¿´ÊÇ·ñ datavg ÒѾ­¼¤»î
eÕý³£Æô¶¯ºó£¬ÓÃ(#smit clstop)ͨ¹ý takeover ·½Ê½ downµôÒ»¸ö
node£¬²é¿´ÊÇ·ñ IP ±»ÁíÒ»¸önode½Ó¹Ü
fÍ£Ö¹HACMP£¬ÓÃ(#smit clstop)ͨ¹ýgraceful·½Ê½»òforce·½Ê½Í£ÓÃHACMP
-graceful·½Ê½ÊÇnodeÍ£ÓÃHACMP²¢ÊÍ·Å×ÊÔ´
-force·½Ê½ÊÇnodeÍ£ÓÃHACMPµ«²»ÊÍ·Å×ÊÔ´
-take over·½Ê½ÊÇnodeÍ£ÓÃHACMP,²¢ÈÃÁíÒ»¸önode½Ó¹Ü×ÊÔ´
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ