# How to Quickly Inspect the Content of a File?

**URL:** <https://root-forum.cern.ch/t/how-to-quickly-inspect-the-content-of-a-file/38086>\
**Category:** Howto\
**Created:** [February 21, 2020, 3:33pm UTC](https://root-forum.cern.ch/t/how-to-quickly-inspect-the-content-of-a-file/38086 "2020-02-21T15:33:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [February 21, 2020, 3:33pm UTC](https://root-forum.cern.ch/t/how-to-quickly-inspect-the-content-of-a-file/38086/1 "2020-02-21T15:33:15Z")

</div>

_Note: The root command line tools were released with ROOT 6.06._

ROOT provides command line tools that allow you to quickly inspect and modify the content of ROOT files. They can be divided in two categories:

1. The ones having a behaviour which is compatible with the widely known \*nix tools like ls, rm, mkdir.

- **rootls** : list the content of a ROOT file.
- **rootcp** : copy objects stored in a file to another file.
- **rootrm** : delete objects contained in a file.
- **rootmv** : move objects stored in a file to another file.
- **rootmkdir** : create a “directory” inside a ROOT file.

1. The ones which automate very common operations performed on widely adopted ROOT classes:

- **rootbrowse** : open a TBrowser directly on the content of a ROOT file.
- **rooteventselector** : extract a range of events of a tree contained in a file and put them as a new tree in another file.
- **rootprint** : plot objects in an image file.

More detailed instructions about the switches they offer and example command lines can be inspected using the **-h** switch.
