Home Explore Blog CI



nushell

commands/docs/clear.md
0543cce6b2304b9dfe74cd776c5e24bc98896f87f6c9f2ec0000000300000339
---
title: clear
categories: |
  platform
version: 0.104.0
platform: |
  Clear the terminal.
usage: |
  Clear the terminal.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `clear` for [platform](/commands/categories/platform.md)

<div class='command-title'>Clear the terminal.</div>

## Signature

```> clear {flags} ```

## Flags

 -  `--keep-scrollback, -k`: Do not clear the scrollback history


## Input/output types:

| input   | output  |
| ------- | ------- |
| nothing | nothing |
## Examples

Clear the terminal
```nu
> clear

```

Clear the terminal but not its scrollback history
```nu
> clear --keep-scrollback

```

## Notes
By default clears the current screen and the off-screen scrollback buffer.

Chunks
12810344 (1st chunk of `commands/docs/clear.md`)
Title: untitled
Summary
--- title: clear categories: | platform version: 0.104.0 platform: | Clear the terminal. usage: | Clear the terminal. editLink: false contributors: false --- <!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. --> # `clear` for [platform](/commands/categories/platform.md) <div class='command-title'>Clear the terminal.</div> ## Signature ```> clear {flags} ``` ## Flags - `--keep-scrollback, -k`: Do not clear the scrollback history ## Input/output types: | input | output | | ------- | ------- | | nothing | nothing | ## Examples Clear the terminal ```nu > clear ``` Clear the terminal but not its scrollback history ```nu > clear --keep-scrollback ``` ## Notes By default clears the current screen and the off-screen scrollback buffer.