×ðÁú¿­Ê±

ÔõÑùÔÚLinuxÖÐÉó²éÄ¿½ñ·¾¶£¿

ÔõÑùÔÚLinuxÖÐÉó²éÄ¿½ñ·¾¶£¿

ÔÚLinux²Ù×÷ϵͳÖÐ £¬Éó²éÄ¿½ñ·¾¶ÊǷǾ­³£¼ûµÄ²Ù×÷ £¬¿ÉÒÔ×ÊÖúÎÒÃÇÈ·ÈÏÄ¿½ñËùÔÚµÄÎļþ¼ÐλÖá£Í¨¹ýһЩ¼òÆÓµÄÏÂÁî £¬ÎÒÃÇ¿ÉÒÔÀû±ãµØÕÒµ½Ä¿½ñËùÔÚ·¾¶¡£

ʹÓÃpwdÏÂÁî

ÔÚLinuxÖÐ £¬¿ÉÒÔʹÓÃpwdÏÂÁîÀ´Éó²éÄ¿½ñËùÔÚ·¾¶¡£pwdÊÇ¡°print working directory¡±µÄËõд £¬ÒâΪ¡°´òÓ¡ÊÂÇéĿ¼¡±¡£Í¨¹ýÔÚÖÕ¶ËÖÐÊäÈëpwdÏÂÁî £¬ÏµÍ³»á·µ»ØÄ¿½ñ·¾¶µÄ¾ø¶Ô·¾¶ÐÅÏ¢¡£

ʾÀý´úÂ룺

pwd

µÇ¼ºó¸´ÖÆ

Ö´ÐиÃÏÂÁîºó £¬ÏµÍ³»á·µ»ØÄ¿½ñËùÔÚ·¾¶µÄ¾ø¶Ô·¾¶ £¬È磺/home/user/Documents¡£

ʹÓÃechoÏÂÁîÍŽáPWDÇéÐαäÁ¿

³ýÁËʹÓÃpwdÏÂÁîÍâ £¬»¹¿ÉÒÔͨ¹ýÍŽáechoÏÂÁîºÍ$PWDÇéÐαäÁ¿À´Éó²éÄ¿½ñ·¾¶¡£

ʾÀý´úÂ룺

echo $PWD

µÇ¼ºó¸´ÖÆ

Ö´ÐиÃÏÂÁîºó £¬ÏµÍ³Í¬Ñù»á·µ»ØÄ¿½ñËùÔÚ·¾¶µÄ¾ø¶Ô·¾¶¡£

ʹÓÃcdÏÂÁîÀÍÆÈ´»µ½Ä¿½ñ·¾¶ºóÔÙʹÓÃpwdÏÂÁî

ÔÚLinuxϵͳÖÐ £¬¿ÉÒÔͨ¹ýcd .ÏÂÁîÀÍÆÈ´»µ½Ä¿½ñ·¾¶ £¬È»ºóÔÙʹÓÃpwdÏÂÁîÉó²éÄ¿½ñ·¾¶¡£

ʾÀý´úÂ룺

cd .
pwd

µÇ¼ºó¸´ÖÆ

Ö´ÐÐÒÔÉÏÁ½ÌõÏÂÁîºó £¬ÏµÍ³Í¬Ñù»á·µ»ØÄ¿½ñËùÔÚ·¾¶µÄ¾ø¶Ô·¾¶¡£

×ܽ᣺

ͨ¹ýÉÏÊöÈýÖÖÒªÁì £¬ÎÒÃÇ¿ÉÒÔÔÚLinuxϵͳÖÐÀû±ãµØÉó²éÄ¿½ñËùÔÚ·¾¶¡£ÕâЩÏÂÁî¼òÆÓÀû±ã £¬¿ÉÒÔ×ÊÖúÎÒÃÇ¿ìËÙÈ·ÈÏ×Ô¼ºËùÔÚµÄÊÂÇéĿ¼ £¬Ìá¸ßÊÂÇéЧÂÊ¡£Ï£ÍûÒÔÉÏÄÚÈݶÔÄúÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇÔõÑùÔÚLinuxÖÐÉó²éÄ¿½ñ·¾¶£¿µÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿