ÔÚLinuxµÄ¶àĿ¼ÃüÁîÌáʾ·ûÖй¤×÷ÊÇÒ»ÖÖÍ´¿àµÄÊÂÇ飬µ«ÒÔÏÂÕâЩÀûÓÃcdºÍpushdÇл»Ä¿Â¼µÄ¼¼ÇÉÓÐÖúÓÚÄã½Úʡʱ¼äºÍ¾«Á¦ ¡£
ÔÚLinuxÃüÁîÌáʾÖУ¬ÓÃcdÃüÁîÀ´¸Ä±äµ±Ç°Ä¿Â¼¡£ÕâÊÇcdÃüÁîµÄһЩ»ù±¾Ó÷¨£º
¸Ä±äÄãµÄ¸ù·¾¶£¬¼üÈëcd£¬°´»Ø³µ¼ü¡£
½øÈëÒ»¸ö×ÓĿ¼£¬¼üÈëcd£¬¿Õ¸ñ£¬È»ºóÊÇ×Ó·¾¶Ãû£¨ÀýÈ磺cd Documents£©£¬ÔÙ°´»Ø³µ¼ü¡£
½øÈ뵱ǰĿ¼µÄÉÏÒ»¼¶Ä¿Â¼£¬¼üÈëcd£¬¿Õ¸ñ£¬Á½¸öµã£¬È»ºó°´»Ø³µ¼ü¡£
½øÈëÒ»¸öÌض¨µÄĿ¼£¬¼üÈëcd£¬¿Õ¸ñ£¬Â·¾¶Ãû£¨ÀýÈç cd /usr/local/lib£©£¬ÔÙ°´»Ø³µ¼ü¡£
ΪÁËÈ·¶¨ÄãËùÔÚµÄĿ¼£¬Äã¿ÉÒÔ¼üÈëpwd£¬°´»Ø³µ¼ü£¬Ä㽫¿´µ½ÄãËùÔڵĵ±Ç°Ä¿Â¼Ãû³Æ¡£
ÓÃpushdʵÏÖÔÚ²»Í¬Ä¿Â¼¼äÇл»¡£
ÔÚÃüÁîÐÐģʽÏ£¬µ±Ä㹤×÷ÔÚ²»Í¬Ä¿Â¼ÖУ¬Ä㽫·¢ÏÖÄãÓкܶàʱ¼ä¶¼ÀË·ÑÔÚÖظ´ÊäÈëÉÏ¡£Èç¹ûÕâЩĿ¼²»ÔÚͬһ¸ö¸ùĿ¼ÖУ¬Äã²»µÃ²»ÔÚת»»Ê±ÊäÈëÍêÕûµÄ·¾¶Ãû£¬ÕâÄÑÃâÈÃÈËÓÐЩÄÑÒÔÈÌÊÜ¡£µ«Äã¿ÉÒÔÓÃÒÔϵÄÒ»¸ö»òÁ½¸ö²½ÖèÀ´±ÜÃâËùÓжàÓàµÄÊäÈ룺ÓÃÃüÁîÐнâÊÍÆ÷ÖеÄÀúÊ·¼Ç¼£¬»òÕßÓÃÃüÁîÐк¯Êýpushd¡£
ÓÃÃüÁîÐнâÊÍÆ÷ÖеÄÀúÊ·¼Ç¼µÄºÃ´¦ÊÇÖ»Ðè°´ºÜÉٵļü¡£ÔÚÃüÁîÐÐÖÐÓÃÏòÉϵļýÍ·À´²éÕÒÄãÓùýµÄÃüÁֱµ½ÄãÕÒµ½£¬È»ºó°´»Ø³µ¼ü¡£Èç¹ûÄãËùÇл»µÄÁ½¸öĿ¼ÔÚÕû¸öÇý¶¯Æ÷µÄ×ÓĿ¼½á¹¹Öкܽӽü£¬ÄÇÓýâÊÍÆ÷ÖеÄÀúÊ·¼Ç¼¿ÉÄÜÊÇÄã×îºÃµÄÑ¡Ôñ¡£
È»¶ø£¬Èç¹ûÄãÔÚÁ½¸ö½ØÈ»²»Í¬µÄ·¾¶¼äת»»µÄ»°£¬Äã¿ÉÄܺÜÏ£ÍûÀûÓÃpushdÕâ¸öº¯Êý£¬Äã¿ÉÒÔÓÃËü´´½¨Ò»¸öĿ¼¶ÑÕ»£¨ÔÚÄÚ´æÖеÄÒ»¸öÁÐ±í£©¡£
×¢ÊÍ£ºÈ±Ê¡Çé¿öÏ£¬pushdº¯Êý¿ÉÄܲ»°üÀ¨ÔÚÄãµÄLinuxÖУ»µ«Ëü°üºÔÚRed HatºÍÓÃRed HatÇý¶¯µÄϵͳÖС£Èç¹ûÄãµÄϵͳÖÐûÓÐpushdº¯Êý£¬Äã¿ÉÒÔÔÚibiblio.orgÍøÕ¾ÉÏÏÂÔØÏà¹ØµÄº¯Êý¹¤¾ß¡£
ÕâÀï˵һÏÂÔõôÓÃpushd¡£¼ÙÉèÄãÏÖÔÚ¹¤×÷ÔÚ/usr/share/fontsĿ¼Ï¡£ÄãÐèÒª¶Ô/usr/share/fonts×öһЩ¸Ä¶¯£¬Ä㽫Ƶ·±µÄÔÚÁ½¸öĿ¼¼äÇл»¡£¿ªÊ¼ÔÚÒ»¸öĿ¼Ï£¬ÓÃpushdº¯ÊýÇл»µ½ÁíÒ»¸öĿ¼¡£ÔÚÎÒÃǵÄÀý×ÓÖУ¬¿ªÊ¼ÔÚ/usr/share/fontsÏ£¬Äã¼üÈëpushd/opt/wonderword/fonts£¬È»ºó°´»Ø³µ¼ü¡£ÏÖÔÚ£¬Ä㽫ÔÚÏÂÒ»Ðп´µ½¶ÑÕ»ÖеÄÄÚÈÝ£º/opt/wonderword/fonts /usr/share/fonts¡£
ÕýÈçÄãËù¿´µ½µÄ£¬µ±Äã¼üÈëpushdºÍÒ»¸ö·¾¶Ãûʱ£¬½«×Ô¶¯²úÉúÒ»¸ö¶ÑÕ»£¬ÄÚÈÝÊÇÄã¼üÈëµÄĿ¼ÃûºÍÄ㵱ǰ¹¤×÷µÄĿ¼Ãû¡£ÔÚÎÒÃǵÄÀý×ÓÖУ¬ÄãËù¼üÈëµÄ·¾¶£¨/opt/wonderword/fonts£©ÔÚ¶ÑÕ»µÄ¶¥²¿¡£
¿ìËÙ·µ»ØÉÏÒ»¼¶Ä¿Â¼£¬Äã¿ÉÒÔÖ±½Ó¼üÈëpushd£¬Èç¹û²»¸ú·¾¶Ãû£¬Ä㽫·µ»Øµ½¶ÑÕ»ÖÐÇ°Ò»¸öĿ¼µÄÉÏÒ»²ãĿ¼¡£
Èç¹ûÄãÐèÒª´Ó¶ÑÕ»ÖÐɾ³ýÒ»¸öĿ¼£¬¼üÈëpopd£¬È»ºóÊÇĿ¼Ãû³Æ£¬ÔÙ°´»Ø³µ¼ü¡£Ïë²é¿´¶ÑÕ»ÖÐĿ¼ÁÐ±í£¬¼üÈëdirs£¬È»ºó°´»Ø³µ¼ü¡£popdºÍdirsÃüÁîÒ²Êdz£Óú¯ÊýÖеÄÒ»²¿·Ö¡£
Shah ÓÚ 2014-12-14 14:46:39·¢±í:
good