🧀 Learn Linux

進階 · 整理檔案

dirname:取得父目錄路徑

放入自由練習

語法

dirname 路徑

範例

dirname /var/log/app.log

使用說明與支援範圍

不需要路徑真實存在。

動手練習

完整文檔 ↗

同主題指令