lnav (The Log File Navigator) 0.11.2 keyboard shortcuts 

lnav (The Log File Navigator) 0.11.2  

Zeynel -
13 months ago
- Shortcuts
0
Ctrl + C

If the focused line is from a file connected to an open pipe (the “↻” icon will be next to the file name), a SIGINT will be sent to the child process. Otherwise, lnav will quickly exit. If lnav seems to be stuck in a loop, pressing Ctrl + C three times will trigger an abort exit.

Advertisement

Most of these hotkeys should be available in all views.
0
Space

Down a page

0
or Page Down
0
Ctrl + D

Down by half a page

0
B

Up a page

0
or Backspace
0
or Page Up
0
Ctrl + U

Up by half a page

0
J

Down a line

0
or
0
K

Up a line

0
or
0
H

Left half a page. In the log view, pressing left while at the start of the message text will reveal the shortened source file name for each line. Pressing again will reveal the full path.

0
or
0
↑  Shift + H

Left ten columns

0
or ↑  Shift +
0
L

Right half a page

0
or
0
↑  Shift + L

Right ten columns

0
or ↑  Shift +
0
Home

Top of the view

0
or G
0
or End
0
E

Next/previous error

0
or ↑  Shift + E
0
W

Next/previous warning

0
or ↑  Shift + W
0
N

Next/previous search hit

0
or ↑  Shift + N
0
>

Next/previous search hit (horizontal)

0
or <
0
F

Next/previous file

0
or ↑  Shift + F
0
U

Next/previous bookmark

0
or ↑  Shift + U
0
O

Forward/backward through log messages with a matching “opid” field

0
or ↑  Shift + O
0
S

Next/previous slow down in the log message rate

0
or ↑  Shift + S
0
{

Previous/next location in history

0
or }
These hotkeys are only functional on views that are time-based, like the log view or the histogram view.
0
D

Forward/backward 24 hours

0
or ↑  Shift + D
0
1

(… to 6) Next/previous n’th ten minute of the hour

0
or ↑  Shift + 1
0
7

Previous/next minute

0
or 8
0
0

Next/previous day

0
or ↑  Shift + 0
0
R

Forward/backward by the relative time that was last used with the go to command

0
or ↑  Shift + R
The following shortcuts are related to the breadcrumb bar that is below the top status bar.
0
`

Focus on the breadcrumb bar

0
⤶ Enter

If the bar is currently focused, accept the selected value and drop focus

Advertisement

0
Esc

Drop focus on the breadcrumb bar

0

Select the crumb to the left. If the first crumb is selected, the selection will wrap around to the last crumb

0

Accept the current value, which might mean navigating to the value in the view, then selecting the crumb to the right

0
Ctrl + A

Select the first crumb

0
Ctrl + E

Select the last crumb

0

Select the next value in the crumb dropdown

0

Select the previous value in the crumb dropdown

0
Home

Select the first value in the crumb dropdown

0
End

Select the last value in the crumb dropdown

While a crumb is selected, you can perform a fuzzy search on the possible values by typing in the value you are interested in
0
M

Mark/unmark the top line or focused line when in cursor mode

0
↑  Shift + M

Mark/unmark the range of lines from the last marked to the top

0
↑  Shift + J

Mark/unmark the next line after the previously marked

0
↑  Shift + K

Mark/unmark the previous line

0
C

Copy marked lines to the clipboard

0
↑  Shift + C

Clear marked lines

0
?

View/leave builtin help

0
Q

Return to the previous view/quit

0
↑  Shift + Q

Return to the previous view/quit while matching the top times of the two views

0
A

Restore the view that was previously popped with ‘q/Q’

0
↑  Shift + A

Restore the view that was previously popped with ‘q/Q’ and match the top times of the views

0
↑  Shift + P

Switch to/from the pretty-printed view of the displayed log or text files

0
↑  Shift + T

Display the elapsed time from a bookmark to a given line. In the TEXT view, this only works for content that was captured from stdin or a :sh command.

0
T

Switch to/from the text file view

0
I

Switch to/from the histogram view

0
or ↑  Shift + I
0
V

Switch to/from the SQL result view

0
↑  Shift + V

Switch to/from the SQL result view and move to the corresponding in the log_line column

0
P

Toggle the display of the log parser results

0
Tab

In the log/text views, focus on the configuration panel for editing filters and examining the list of loaded files. In the SQL result view, cycle through columns to display as bar graphs

0
Ctrl + L

Switch to lo-fi mode. The displayed log lines will be dumped to the terminal without any decorations so they can be copied easily.

0
Ctrl + W

Toggle word-wrap.

0
Ctrl + P

Show/hide the data preview panel that may be opened when entering commands or SQL queries.

0
Ctrl + F

Toggle the enabled/disabled state of all filters in the current view.

0
X

Toggle the hiding of log message fields. The hidden fields will be replaced with three bullets and highlighted in yellow.

0
Ctrl + X

Toggle the cursor mode. Allows moving the focused line instead of keeping it fixed at the top of the current screen.

0
=

Pause/unpause loading of new file data.

0
Ctrl + R

Reset the current session state. The session state includes things like filters, bookmarks, and hidden fields.

0
/

Search for lines matching a regular expression

0
;

Open the SQLite Interface to execute SQL statements/queries

0
:

Execute an internal command, see Commands for more information

0
|

Execute an lnav script located in a format directory

0
Ctrl + ]

Abort the prompt


Share this page on:
Is this page helpful?
0 0

Program information

Program name: lnav (The Log File Navigator) 0.11.2 lnav (The Log File Navigator) 0.11.2 (System tools)

Web page: docs.lnav.org/en/v0.11.2/intro...

How easy to press shortcuts: 91%

More information >>

Updated: Updated program information. (2 updates.) 23.10.2023 17:51:57 New program added.
23.10.2023 17:53:34 Updated program information.

Shortcut count: 95

Platform detected: Windows or Linux

Similar programs



User operations

Add lnav (The Log File Navigator) 0.11.2 to your list of favorites

Advertisement


What is your favorite lnav (The Log File Navigator) 0.11.2 hotkey? Do you have any useful tips for it? Let other users know below.


Only registered users can post links.
 
No comments yet. Ask, or type the first one!

Latest articles