Scroll to navigation

REALPATH(1) 使用者命令 REALPATH(1)

名稱

realpath - 輸出經過解析的檔案路徑

概述

realpath [選項]... 檔案列表...

描述

輸出經過解析的絕對檔名;檔名除最後部分以外的所有部分都必須存在

路徑中的所有組成部分必須存在
路徑的各個部分不必須存在,不存在者將被視為目錄
在符號連結前解析“..”部分
解析遇到的符號連結(預設)
隱藏大多數錯誤資訊
輸出相對於指定目錄所解析的路徑
路徑在指定目錄之下則輸出相對它的路徑,否則輸出絕對路徑
不要擴充套件符號連結
使每行輸出以 NUL 字元結束,不新增換行符
顯示此幫助資訊並退出
顯示版本資訊並退出

作者

由 Padraig Brady 編寫。

報告錯誤

GNU coreutils 的線上幫助: <https://www.gnu.org/software/coreutils/>
請向 <https://translationproject.org/team/zh_CN.html> 報告翻譯錯誤。

版權

Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

參見

readlink(1), readlink(2), realpath(3)

完整文件請見: <https://www.gnu.org/software/coreutils/realpath>
或者在本地使用: info '(coreutils) realpath invocation'

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh

2020年三月 GNU coreutils 8.32