linuxÃüÁîѧϰ±Ê¼Ç£¨2£©£ºcdÃüÁî[ÍƼö]
Linux cd ÃüÁî¿ÉÒÔ˵ÊÇLinuxÖÐ×î»ù±¾µÄÃüÁîÓï¾ä£¬ÆäËûµÄÃüÁîÓï¾äÒª½øÐвÙ×÷£¬¶¼Êǽ¨Á¢ÔÚʹÓà cd ÃüÁîÉϵġ£
ËùÒÔ£¬Ñ§Ï°Linux ³£ÓÃÃüÁÊ×ÏȾÍҪѧºÃ cd ÃüÁîµÄʹÓ÷½·¨¼¼ÇÉ¡£
1. ÃüÁî¸ñʽ£ºcd [Ŀ¼Ãû]
2. ÃüÁÄÜ£ºÇл»µ±Ç°Ä¿Â¼ÖÁdirName
3. ³£Ó÷¶Àý
3.1 ÀýÒ»£º½øÈëϵͳ¸ùĿ¼
ÃüÁcd /
Êä³ö£º
[root@localhost ~]# cd / [root@localhost /]#
˵Ã÷£º½øÈëϵͳ¸ùĿ¼,ÉÏÃæÃüÁîÖ´ÐÐÍêºóÄÃlsÃüÁһϣ¬µ±Ç°Ä¿Â¼ÒѾµ½ÏµÍ³¸ùĿ¼ÁË ÃüÁcd .. »òÕß cd .. // Êä³ö£º[root@localhost soft]# pwd /opt/soft [root@localhost soft]# cd .. [root@localhost opt]# cd ..// [root@localhost /]# pwd /˵Ã÷£º ½øÈëϵͳ¸ùĿ¼¿ÉÒÔʹÓá° cd .. ¡±Ò»Ö±ÍË£¬¾Í¿ÉÒÔµ½´ï¸ùĿ¼ ÃüÁcd ../.. // Êä³ö£º[root@localhost soft]# pwd /opt/soft [root@localhost soft]# cd ../.. // [root@localhost /]# pwd / [root@localhost /]#˵Ã÷£ºÊ¹ÓÃcd ÃüÁîʵÏÖ½øÈ뵱ǰĿ¼µÄ¸¸Ä¿Â¼µÄ¸¸Ä¿Â¼¡£ Àý2£ºÊ¹Óà cd ÃüÁî½øÈ뵱ǰÓû§Ö÷Ŀ¼ ¡°µ±Ç°Óû§Ö÷Ŀ¼¡±ºÍ¡°ÏµÍ³¸ùĿ¼¡±ÊÇÁ½¸ö²»Í¬µÄ¸ÅÄî¡£½øÈ뵱ǰÓû§Ö÷Ŀ¼ÓÐÁ½¸ö·½·¨¡£ ÃüÁî1£ºcd Êä³ö£º[root@localhost soft]# pwd /opt/soft [root@localhost soft]# cd [root@localhost ~]# pwd /rootÃüÁî2£ºcd ~ Êä³ö£º[root@localhost ~]# cd /opt/soft/ [root@localhost soft]# pwd /opt/soft [root@localhost soft]# cd ~ [root@localhost ~]# pwd /rootÀý3£ºÌøתµ½Ö¸¶¨Ä¿Â¼ ÃüÁcd /opt/soft Êä³ö£º[root@localhost ~]# cd /opt/soft [root@localhost soft]# pwd /opt/soft [root@localhost soft]# cd jdk1.7.0_16/ [root@localhost jdk1.7.0_16]# pwd /opt/soft/jdk1.7.0_16 [root@localhost jdk1.7.0_16]#˵Ã÷£ºÌøתµ½Ö¸¶¨Ä¿Â¼£¬´Ó¸ùĿ¼¿ªÊ¼£¬Ä¿Â¼Ãû³ÆÇ°¼Ó / ,µ±Ç°Ä¿Â¼ÄÚµÄ×ÓĿ¼ֱ½ÓдÃû³Æ¼´¿É Àý4£º·µ»Ø½øÈë´ËĿ¼֮ǰËùÔÚµÄĿ¼ ÃüÁcd - Êä³ö£º[root@localhost soft]# pwd /opt/soft [root@localhost soft]# cd - /root [root@localhost ~]# pwd /root [root@localhost ~]# cd - /opt/soft [root@localhost soft]#Àý5£º°ÑÉϸöÃüÁîµÄ²ÎÊý×÷Ϊcd²ÎÊýʹÓᣠÃüÁcd !$ Êä³ö£º[root@localhost soft]# cd !$ cd - /root [root@localhost ~]# cd !$ cd - /opt/soft [root@localhost soft]#
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ