linuxÃüÁîѧϰ±Ê¼Ç£¨3£©£ºpwdÃüÁî
LinuxÖÐÓà pwd ÃüÁîÀ´²é¿´¡±µ±Ç°¹¤×÷Ŀ¼¡°µÄÍêÕû·¾¶¡£ ¼òµ¥µÃ˵£¬Ã¿µ±ÄãÔÚÖն˽øÐвÙ×÷ʱ£¬Ä㶼»áÓÐÒ»¸öµ±Ç°¹¤×÷Ŀ¼¡£
ÔÚ²»Ì«È·¶¨µ±Ç°Î»ÖÃʱ£¬¾Í»áʹÓÃpwdÀ´Åж¨µ±Ç°Ä¿Â¼ÔÚÎļþϵͳÄÚµÄÈ·ÇÐλÖá£
1£®ÃüÁî¸ñʽ£º
pwd [Ñ¡Ïî]
2£®ÃüÁÄÜ£º
²é¿´¡±µ±Ç°¹¤×÷Ŀ¼¡°µÄÍêÕû·¾¶
3£®³£ÓòÎÊý£º
Ò»°ãÇé¿öϲ»´øÈκβÎÊý
Èç¹ûĿ¼ÊÇÁ´½Óʱ£º
¸ñʽ£ºpwd -P ÏÔʾ³öʵ¼Ê·¾¶£¬¶ø·ÇʹÓÃÁ¬½Ó£¨link£©Â·¾¶¡£
4£®³£ÓÃʵÀý£º
ʵÀý1£ºÓà pwd ÃüÁî²é¿´Ä¬ÈϹ¤×÷Ŀ¼µÄÍêÕû·¾¶
ÃüÁpwd
Êä³ö£º
[root@localhost ~]# pwd
/root
[root@localhost ~]#
ʵÀý2£ºÊ¹Óà pwd ÃüÁî²é¿´Ö¸¶¨Îļþ¼Ð
ÃüÁpwd
Êä³ö£º
[root@localhost ~]# cd /opt/soft/
[root@localhost soft]# pwd
/opt/soft
[root@localhost soft]#
ʵÀý3£ºÄ¿Â¼Á¬½ÓÁ´½Óʱ£¬pwd -P ÏÔʾ³öʵ¼Ê·¾¶£¬¶ø·ÇʹÓÃÁ¬½Ó£¨link£©Â·¾¶£»pwdÏÔʾµÄÊÇÁ¬½Ó·¾¶
ÃüÁpwd -P
Êä³ö£º
[root@localhost soft]# cd /etc/init.d
[root@localhost init.d]# pwd
/etc/init.d
[root@localhost init.d]# pwd -P
/etc/rc.d/init.d
[root@localhost init.d]#
ʵÀý4£º/bin/pwd
ÃüÁ/bin/pwd [Ñ¡Ïî]
Ñ¡Ï
-L Ŀ¼Á¬½ÓÁ´½Óʱ£¬Êä³öÁ¬½Ó·¾¶
-P Êä³öÎïÀí·¾¶
Êä³ö£º
[root@localhost init.d]# /bin/pwd
/etc/rc.d/init.d
[root@localhost init.d]# /bin/pwd --help
[root@localhost init.d]# /bin/pwd -P
/etc/rc.d/init.d
[root@localhost init.d]# /bin/pwd -L
/etc/init.d
[root@localhost init.d]#
ʵÀý5£ºµ±Ç°Ä¿Â¼±»É¾³ýÁË£¬¶øpwdÃüÁîÈÔÈ»ÏÔʾÄǸöĿ¼
Êä³ö£º
[root@localhost init.d]# cd /opt/soft
[root@localhost soft]# mkdir removed
[root@localhost soft]# cd removed/
[root@localhost removed]# pwd
/opt/soft/removed
[root@localhost removed]# rm ../removed -rf
[root@localhost removed]# pwd
/opt/soft/removed
[root@localhost removed]# /bin/pwd
/bin/pwd: couldn't find directory entry in ¡°..¡± with matching i-node
[root@localhost removed]# cd
[root@localhost ~]# pwd
/root
[root@localhost ~]#
ÍƼöÐÅÏ¢
- 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µÈ
ÆÀÂÛ