Quando eu mostro o manual de pwdcomando, ele diz que opções longas --physicalsão suportadas
$ 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
No entanto, falha ao digitar o seguinte
$ pwd --physical
-bash: pwd: --: invalid option
pwd: usage: pwd [-LP]
Por que as opções longas não estão funcionando para mim?
Estou usando o RHEL 6.4. Nenhum alias para pwd está configurado. Parece que é pwd padrão:
$ which pwd
/bin/pwd
typevez de which, pois whichmostra apenas comandos, enquanto typemostra palavras-chave, builtins, aliases, funções e comandos (e caminhos de comando com hash). Para mais detalhes, consulte Por que não usar "qual"? O que usar então?
man pwdtem a seguinte nota: 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 supportsna parte inferior da DESCRIPTIONseção.