当我显示pwd
命令手册时,它说--physical
支持长选项
$ man pwd
PWD(1) User Commands PWD(1)
NAME
pwd - print name of current/working directory
SYNOPSIS
pwd [OPTION]...
DESCRIPTION
Print the full filename of the current working directory.
-L, --logical
use PWD from environment, even if it contains symlinks
-P, --physical
avoid all symlinks
但是,当我键入以下内容时,它将失败
$ pwd --physical
-bash: pwd: --: invalid option
pwd: usage: pwd [-LP]
为什么长期权对我不起作用?
我正在使用RHEL 6.4。没有为pwd配置别名。看起来是标准的密码:
$ which pwd
/bin/pwd
1
手册页适用于不属于bash的独立实用程序。
—
Thomas Dickey
—
wjandrea
在我的系统中,
—
Nykakin
man pwd
有以下注意事项:your shell may have its own version of pwd, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports
在本DESCRIPTION
节的底部。