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

主頁 > 知識庫 > 一個簡單的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)民參考!
  • 推薦文章
    主站蜘蛛池模板: 宁乡县| 卢氏县| 桂东县| 称多县| 北票市| 阿坝| 民勤县| 曲松县| 珠海市| 博罗县| 中山市| 清水县| 肃北| 兰溪市| 图们市| 阿克陶县| 读书| 盐城市| 安国市| 若羌县| 五峰| 鹿邑县| 隆子县| 灵武市| 永康市| 桂平市| 旅游| 安新县| 靖江市| 临沂市| 宾阳县| 伊川县| 巴中市| 德昌县| 宁乡县| 出国| 临沭县| 石嘴山市| 河源市| 台北县| 治县。|