← 返回命令列表

Linux command

logread 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Print

logread

Follow

logread -f

Example

logread -l [50]

Filter

logread -e [pattern]

Filter

logread -p [daemon.info]

Example

logread -f -e [error]

说明

logread reads the logd ring buffer log on OpenWrt and similar embedded Linux systems. It provides access to system messages stored in memory rather than on disk.

参数

-f
Follow log output in real-time (like tail -f).
-l _N_
Print only the last N messages.
-e _PATTERN_
Filter messages matching a keyword or pattern.
-p _FACILITY.LEVEL_
Filter by syslog facility and priority (e.g., kern.err, daemon.info).
-t
Include a human-readable timestamp with each message.
-h
Display help information.

FAQ

What is the logread command used for?

logread reads the logd ring buffer log on OpenWrt and similar embedded Linux systems. It provides access to system messages stored in memory rather than on disk.

How do I run a basic logread example?

Run `logread` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f do in logread?

Follow log output in real-time (like tail -f).