Dmesg

dmesg (diagnostic mesages) là một lệnh trên các hệ điều hành Linux và Unix, có nhiệm vụ xuất ra bộ đệm thông điệp của nhân hệ điều hành.
Sử dụng
Khi hệ thống máy tính khởi động, nhân hệ điều hành được nạp vào bộ nhớ. Trong giai đoạn này các chương trình điều khiển của các thiết bị phần cứng hiện hữu sẽ được xem xét. Nếu phần cứng hoạt động, một thông báo được gửi đi. Các thành phần khác của nhân cũng có thể đưa ra các thông báo về các mô đun liên quan, và các tham số được thông qua. Người dùng cũng có thể cài đặt các thông số xuất hiện trong thông báo. Trong quá trình khởi động, các thông báo hiện ra trên màn hình điều khiển, người dùng có thể dùng bàn phím để tạm dừng và xem xét. Sau khi khởi động xong, lệnh dsmeg cho phép người dùng xem lại những thông báo được đưa ra trong quá trình khởi động.
Ngoài ra, sau khi khởi động xong, đôi khi nhân vẫn đưa ra một số thông báo. Thông thường là khi một thiết bị vào ra gặp lỗi, hay một thiết bị USB kết nối với máy tính. dmesg cho phép ta có thể xem tất cả các thông báo này.
Tham khảo
Liên kết ngoài
- dmesg(8) FreeBSD manual page
- The dmesg Command by The Linux Information Project (LINFO)
- dmesg explained: kernel output examples
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.