/dev/full(或常滿裝置)在類Unix系統中是一個特殊裝置檔案,總是在向其寫入時返回裝置無剩餘空間(錯誤碼為ENOSPC),讀取時則與/dev/zero相似,返回無限的空字元(NULL, ASCII NUL, 0x00)。這個裝置通常被用來測試程式在遇到磁碟無剩餘空間錯誤時的行為。

 $ echo "Hello world" > /dev/full
 bash: echo: write error: No space left on device

參見

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.