我看到了test
的手冊頁。什麼是unix上的常規文件
其中提到以下內容。
-e pathname
True if pathname resolves to a file that exists. False if pathname cannot be resolved.
-f pathname
True if pathname resolves to a file that exists and is a regular file. False if pathname cannot be resolved, or if pathname resolves to a file that exists but is not a regular file.
的-f
標誌說 真,如果路徑解析到一個真實存在的文件,是一個普通文件 有誰請告訴什麼是一個普通的文件,究竟是不是一個普通的文件。