---
name: "trace-cmd-clear"
section: "1"
platform: "linux"
package: "trace-cmd"
version: "3.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/trace-cmd-clear"
---

# trace-cmd-clear(1)

clear the Ftrace buffer.

## NAME

trace-cmd-clear - clear the Ftrace buffer.

## SYNOPSIS

**trace-cmd clear** \[*OPTIONS*\]

## DESCRIPTION

The **[trace-cmd(1)](/trace-cmd/1.md) clear** clears the content of the Ftrace ring buffer.

## OPTIONS

- **-B** *buffer-name*

  If the kernel supports multiple buffers, this will clear only the given buffer. It does not affect any other buffers. This may be used multiple times to specify different buffers. The top level buffer will not be clearded if this option is given.

- **-a**

  Clear all existing buffers, including the top level one.

## SEE ALSO

[trace-cmd(1)](/trace-cmd/1.md), [trace-cmd-record(1)](/trace-cmd-record/1.md), [trace-cmd-report(1)](/trace-cmd-report/1.md), [trace-cmd-start(1)](/trace-cmd-start/1.md), [trace-cmd-extract(1)](/trace-cmd-extract/1.md), [trace-cmd-reset(1)](/trace-cmd-reset/1.md), [trace-cmd-split(1)](/trace-cmd-split/1.md), [trace-cmd-list(1)](/trace-cmd-list/1.md), [trace-cmd-listen(1)](/trace-cmd-listen/1.md)

## AUTHOR

```
Steven Rostedt <rostedt@goodmis.org[1]>, author of trace-cmd.
Tzvetomir Stoyanov <tz.stoyanov@gmail.com[2]>, author of this man page.
```

## REPORTING BUGS

Report bugs to \<**linux-trace-devel@vger.kernel.org**\[3\]\>

## LICENSE

trace-cmd is Free Software licensed under the terms of the GNU Public License (GPL).

## RESOURCES

**https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/**

## NOTES

- 1\.

  rostedt@goodmis.org

  mailto:rostedt@goodmis.org

- 2\.

  tz.stoyanov@gmail.com

  mailto:tz.stoyanov@gmail.com

- 3\.

  linux-trace-devel@vger.kernel.org

  mailto:linux-trace-devel@vger.kernel.org
