mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 05:49:01 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/logread
Normal file
25
tldr/linux/logread
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# logread
|
||||
|
||||
> Read the `logd` ring buffer log.
|
||||
> More information: <https://openwrt.org/docs/guide-user/base-system/log.essentials>.
|
||||
|
||||
- Print the log:
|
||||
|
||||
`logread`
|
||||
|
||||
- Print a specified number of messages:
|
||||
|
||||
`logread -l {{N}}`
|
||||
|
||||
- Filter messages by (Keyword/Regular Expression):
|
||||
|
||||
`logread -e {{pattern}}`
|
||||
|
||||
- Print log messages as they happen:
|
||||
|
||||
`logread -f`
|
||||
Reference in New Issue
Block a user