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의 일부가 아닌 독립형 유틸리티를위한 것입니다.
—
토마스 디키
사용
—
wjandrea
type대신에 which있기 때문에, which단지 쇼 명령하면서 type쇼의 키워드, 내장 명령, 별칭, 함수 및 명령 (및 해시 명령 경로). 자세한 내용은 "뭐"를 사용하지 않는 이유를
내 시스템
—
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.