linux proc檔案系統

來源:互聯網
上載者:User

linux將一切看作檔案,硬體裝置也有相應的條目/dev

/proc內的特殊檔案允許對驅動和核心資訊的高層訪問

ls /proc

cat /proc/cpuinfo (cpu資訊)

cat /proc/meminfo (記憶體資訊)

每次讀取這些檔案的內容時,資訊都會及時更新

 

有的檔案可以修改(需要超級使用者權限)。比如能同時開啟的檔案數是一個linux核心參數

它的值cat /proc/sys/fs/file-max

 

/proc下以數字命名的子目錄提供對正在啟動並執行程式的資訊的訪問

each process has a 唯一的 identifier:a number between 1 and about 32,000

 

ps -a查看正在啟動並執行進程

 PID TTY          TIME CMD
 2574 pts/0    00:00:00 ps

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.