国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

一個簡單的linux命令 pwd

2019-10-26 18:49:50
字體:
來源:轉載
供稿:網友

pwd命令主要用于查看當前工作目錄的完整路徑。

主要用法:pwd [option]

常用范例:

1.查看當前完整路徑

命令:pwd

輸出:

[root@localhost ~]# pwd/root[root@localhost ~]#

2.查看鏈接路徑

命令: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

特性:當前目錄被刪除了,而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 ~]#

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持武林站長站。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 丘北县| 旺苍县| 兴宁市| 乐昌市| 逊克县| 香河县| 吉木乃县| 库尔勒市| 华亭县| 玉龙| 呼和浩特市| 南乐县| 汉川市| 湖北省| 榆树市| 海原县| 古丈县| 宁阳县| 上杭县| 庆城县| 灯塔市| 东方市| 巴里| 新宁县| 双峰县| 南部县| 张家口市| 伊宁县| 依安县| 修水县| 南城县| 博兴县| 青铜峡市| 博湖县| 周至县| 济阳县| 莱州市| 新密市| 营口市| 鄂尔多斯市| 勐海县|