Home Explore Blog CI



nushell

1st chunk of `commands/docs/explore.md`
47a8546bd3d49106f42c4a8165dcb44f32016fb93ecc15f80000000100000586
---
title: explore
categories: |
  viewers
version: 0.104.0
viewers: |
  Explore acts as a table pager, just like `less` does for text.
usage: |
  Explore acts as a table pager, just like `less` does for text.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `explore` for [viewers](/commands/categories/viewers.md)

<div class='command-title'>Explore acts as a table pager, just like `less` does for text.</div>

## Signature

```> explore {flags} ```

## Flags

 -  `--head {bool}`: Show or hide column headers (default true)
 -  `--index, -i`: Show row indexes when viewing a list
 -  `--tail, -t`: Start with the viewport scrolled to the bottom
 -  `--peek, -p`: When quitting, output the value of the cell the cursor was on


## Input/output types:

| input | output |
| ----- | ------ |
| any   | any    |
## Examples

Explore the system host information record
```nu
> sys host | explore

```

Explore the output of `ls` without column names
```nu
> ls | explore --head false

```

Explore a list of Markdown files' contents, with row indexes
```nu
> glob *.md | each {|| open } | explore --index

```

Explore a JSON file, then save the last visited sub-structure to a file
```nu
> open file.json | explore --peek | to json | save part.json

```

## Notes
Press `:` then `h` to get a help menu.

Title: explore command documentation
Summary
The `explore` command is a table pager, similar to `less` for text. It allows users to navigate and inspect table-like data. It supports flags for toggling column headers, showing row indexes, starting at the bottom, and outputting the value of the cell the cursor was on when quitting. Examples show how to explore system information, file listings, markdown file contents, and JSON files.