跳至內容

whereis

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書

whereis是Unix與類Unix作業系統中用於定位某些特殊檔案(如可執行程式、原始碼及手冊頁,可附加參數以限制範圍)的一條命令[1]。whereis會將提供的檔名參數前端的路徑與後端的副檔名部分截去,並找出檔名與之相匹配的特殊檔案,如下範例[2]。

$ whereis /test/sed.test
sed: /bin/sed /usr/share/man/man1/sed.1p.gz /usr/share/man/man1/sed.1.gz

參考文獻

[編輯]
  1. ^ whereis(1) — Linux manual page. man7.org. 
  2. ^ Dejan Panovski. whereis Command in Linux: Find Binary, Source, and Man Pages. 2026‑03‑20. 

外部連結

[編輯]