校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > 一個簡單的linux命令 pwd

一個簡單的linux命令 pwd

熱門標簽:智能電銷機器人有用嗎 鶴崗400電話申請 天津電話外呼系統(tǒng)排名 外呼電話系統(tǒng)怎么操作 商機地圖標注 百度地圖標注直線距離 測繪地圖標注名稱 怎么在百度地圖標注公司的位置 德陽400電話申請

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 ~]#

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

您可能感興趣的文章:
  • 每天一個linux命令 head命令
  • linux find命令之xargs簡單概述
  • linux find命令之exec簡單概述
  • linux命令之find命令簡單概述
  • 每天一個linux命令 chgrp命令
  • 詳解Linux文本文件與WIN文本文件換行格式轉(zhuǎn)換命令
  • 一個簡單的linux命令 mv
  • 一個簡單的linux命令 cp
  • 一個簡單的linux命令 touch
  • 每天一個linux命令 whereis命令

標簽:自貢 優(yōu)質(zhì)小號 武漢 鎮(zhèn)江 丹東 滁州 六盤水 百色

巨人網(wǎng)絡(luò)通訊聲明:本文標題《一個簡單的linux命令 pwd》,本文關(guān)鍵詞  一個,簡單,的,linux,命令,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《一個簡單的linux命令 pwd》相關(guān)的同類信息!
  • 本頁收集關(guān)于一個簡單的linux命令 pwd的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 改则县| 葫芦岛市| 格尔木市| 西昌市| 奎屯市| 沾益县| 舒城县| 简阳市| 高雄市| 宝鸡市| 嵊州市| 海丰县| 忻城县| 昌乐县| 晋宁县| 宜都市| 法库县| 乐都县| 林口县| 清新县| 汾阳市| 鄄城县| 德阳市| 藁城市| 南阳市| 达拉特旗| 濉溪县| 营山县| 临邑县| 宜宾市| 高陵县| 庆云县| 大足县| 昌乐县| 朝阳市| 攀枝花市| 榆社县| 吐鲁番市| 洞头县| 随州市| 左云县|