Quando visualizzo il manuale per il pwdcomando, dice che --physicalsono supportate opzioni lunghe come
$ 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
Tuttavia, non riesce quando si digita quanto segue
$ pwd --physical
-bash: pwd: --: invalid option
pwd: usage: pwd [-LP]
Perché le opzioni lunghe non funzionano per me?
Sto usando RHEL 6.4. Nessun alias per pwd è configurato. Sembra che sia standard pwd:
$ which pwd
/bin/pwd
typeinvece di which, poiché whichmostra solo i comandi, mentre typemostra parole chiave, builtin, alias, funzioni e comandi (e percorsi dei comandi con hash). Per maggiori dettagli vedi Perché non usare "quale"? Cosa usare allora?
man pwdha la seguente 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 supportsin fondo alla DESCRIPTIONsezione.