linuxÖÐcdÏÂÁîÔÚÄÇÀï
linuxÖÐcdÏÂÁîÊÇÒ»¸öshellÄÚ½¨ÏÂÁ¶ø²»ÊÇÒ»¸ö×ÔÁ¦µÄ¿ÉÖ´ÐÐÎļþ£¬ÓÉÏÂÁîÚ¹ÊÍÆ÷Ìṩ²¢´¦Àí£¬ÒÔÊÇcdÏÂÁî¿ÉÒÔÔÚbash shellÖÐÖ±½ÓʹÓ㬲¢Ã»ÓжÔÓ¦µÄ¿ÉÖ´ÐÐÎļþ¡£
±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£
ÔÚLinuxÖУ¬cdÏÂÁîÊÇÒ»¸öShellÄÚ½¨ÏÂÁ¶ø²»ÊÇÒ»¸ö×ÔÁ¦µÄ¿ÉÖ´ÐÐÎļþ¡£ËüÓÉÏÂÁîÚ¹ÊÍÆ÷£¨ÈçBash£©Ìṩ²¢´¦Àí¡£
Ò»Ñùƽ³£ÇéÐÎÏ£¬ÔÚ´ó´ó¶¼Linux¿¯ÐаæÖУ¬Ä¬ÈϵÄShellÊÇBash£¨Bourne Again SHell£©£¬ÒÔÊÇcdÏÂÁî¿ÉÒÔÔÚBash ShellÖÐÖ±½ÓʹÓá£
cdÏÂÁîÓÃÓڸıäÄ¿½ñÊÂÇéĿ¼¡£ÒªÊ¹ÓÃcdÏÂÁֻÐèÔÚÖÕ¶ËÖÐÊäÈëcdÏÂÁºóÃæËæ×ÅÒªÇл»µ½µÄĿ¼·¾¶¡£ÀýÈ磺
cd /path/to/directory
µÇ¼ºó¸´ÖÆ
Õ⽫¸Ä±äÄ¿½ñÊÂÇéĿ¼µ½/path/to/directory¡£
ÐèҪעÖصÄÊÇ£¬ÓÉÓÚcdÏÂÁîÊÇShellÄÚÖÃÏÂÁÒò´Ë²¢Ã»ÓжÔÓ¦µÄ¿ÉÖ´ÐÐÎļþ¡£Äã¿ÉÒÔͨ¹ýÉó²éShellµÄÎĵµ»òÊÖ²áÀ´Ïàʶ¸ü¶à¹ØÓÚcdÏÂÁîµÄÓ÷¨ºÍÑ¡Ïî¡£ÀýÈ磬Äã¿ÉÒÔÔÚÖÕ¶ËÖÐÊäÈëman bashÀ´Éó²éBash ShellµÄÊֲᣬ²¢ËÑË÷cdÏÂÁî»ñÈ¡ÏêϸÐÅÏ¢¡£
ÒÔÉϾÍÊÇlinuxÖÐcdÏÂÁîÔÚÄÇÀïµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡