जब मैं 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]
मेरे लिए लंबे विकल्प काम क्यों नहीं कर रहे हैं?
मैं आरएचईएल 6.4 का उपयोग कर रहा हूं। Pwd के लिए कोई अन्य नाम कॉन्फ़िगर नहीं किया गया है। ऐसा लगता है कि यह मानक pwd है:
$ which pwd
/bin/pwd
typeइसके बजाय का उपयोग करें which, चूंकि whichकेवल कमांड दिखाता है, जबकि typeकीवर्ड, बिल्डिंस, उपनाम, फ़ंक्शन और कमांड (और हैशेड कमांड पथ) दिखाता है। अधिक जानकारी के लिए "क्यों" का उपयोग न करें? तब क्या उपयोग करें?
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।