Skip to main content
Correct syntax highlighting hints
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

If your issue is just that the log is too big to navigate using less, it might help to get the last lines to a file, then navigate that. For example, to look at the last 20 lines:

$ journalctl | tail -20 > temp.txt
$ less temp.txt
$ journalctl | tail -20 > temp.txt
$ less temp.txt

Instead of tail -20, you could grep for a certain date or time.

If your issue is just that the log is too big to navigate using less, it might help to get the last lines to a file, then navigate that. For example, to look at the last 20 lines:

$ journalctl | tail -20 > temp.txt
$ less temp.txt

Instead of tail -20, you could grep for a certain date or time.

If your issue is just that the log is too big to navigate using less, it might help to get the last lines to a file, then navigate that. For example, to look at the last 20 lines:

$ journalctl | tail -20 > temp.txt
$ less temp.txt

Instead of tail -20, you could grep for a certain date or time.

Source Link

If your issue is just that the log is too big to navigate using less, it might help to get the last lines to a file, then navigate that. For example, to look at the last 20 lines:

$ journalctl | tail -20 > temp.txt
$ less temp.txt

Instead of tail -20, you could grep for a certain date or time.