zoukankan      html  css  js  c++  java
  • Linux命令:pwd

    打印当前目录的完全路径。

    -L  打印路径包含符合路径

    -P  打印路径不含符合路径。

    -LP,可能打印的不同,取决于你对进入当前目录的方式是通过符号链接进入,还是物理目录进入。如果是符号链接进入,则-L和不带-L打印的一样,和-P的不一样;如果是从物理目录进入的,则所有情况打印的都一样。

    换言之,要判断自己是否通过符号链接进入的,或者什么符号链接进入的,可以用pwd -L和pwd -P的打印进行比较来确定。

    help pwd

     1 pwd: pwd [-LP]
     2     Print the name of the current working directory.
     3 
     4     Options:
     5       -L        print the value of $PWD if it names the current working
     6         directory
     7       -P        print the physical directory, without any symbolic links
     8 
     9     By default, `pwd' behaves as if `-L' were specified.
    10 
    11     Exit Status:
    12     Returns 0 unless an invalid option is given or the current directory
    13     cannot be read.
    本篇文章出自“国民时代”,转载请注明转载出处。
  • 相关阅读:
    MS SQL Sever数据库还原
    IIS 7.5 配置伪静态
    黑马程序员-out和ref
    黑马程序员-结构
    黑马程序员-ReadInt
    黑马程序员-hashtable
    黑马程序员-冒泡排序
    黑马程序员-快速排序
    黑马程序员-for和foreach
    黑马程序员-集合和索引器
  • 原文地址:https://www.cnblogs.com/ChinaGo/p/10627264.html
Copyright © 2011-2022 走看看