---
title: Install Context Line File Grep on Linux | Snap Store
description: Get the latest version of Context Line File Grep for Linux - Developer
  file grep with before/after context lines, negation & hit viewer
url: https://snapcraft.io/context-line-grep
---

# Context Line File Grep (context-line-grep)

[Nguyen Van Thanh (thanhnv128)](https://snapcraft.io/publisher/thanhnv128 "View all snaps from Nguyen Van Thanh (thanhnv128)")

* [Nguyen Van Thanh (thanhnv128)](https://snapcraft.io/publisher/thanhnv128 "View all snaps from Nguyen Van Thanh (thanhnv128)")
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 1.0.0

Install latest/stable of Context Line File Grep

---

**Install using the command line**

```
sudo snap install context-line-grep
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* context-line-grep

---

### License

* MIT

---

### Last updated

* Today - latest/stable

---

### Websites

* [buymeacoffee.com](https://buymeacoffee.com/thanhnv128b "https://buymeacoffee.com/thanhnv128b")

---

### Contact

* [buymeacoffee.com](https://buymeacoffee.com/thanhnv128b "https://buymeacoffee.com/thanhnv128b")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/context-line-grep#report-snap-modal)

---

* [Description](https://snapcraft.io/context-line-grep#tab-description)
* [Security](https://snapcraft.io/context-line-grep#tab-security)

#### Developer file grep with before/after context lines, negation & hit viewer

A fast developer-focused file grep and context-line viewer for Linux,
serving as an independent open-source Linux alternative to AstroGrep.
Not affiliated with, sponsored by, or endorsed by AstroGrep contributors.

FEATURES
• Tab 0 — Grep Search & Syntax Context Viewer: Recursively search directories
(supporting real home, removable media, and host read-only system paths
such as /etc and /usr) using file type masks (e.g. *.py;*.cpp;*.js;*.txt),
Plain text, RegEx, Whole Word, Case Sensitive, and Negation mode (list files
WITHOUT match). Inspect matching files alongside a rich line-numbered
context viewer showing configurable 0 to 10 Before/After context lines,
dimmed context hunks, and bright highlighted matching spans.
• Tab 1 — Extension Hit Breakdown & File Reader: Interactive extension
breakdown chart and table grouping matched files and total hit counts by
file extension, paired with a line-jump file reader to jump directly to any
matched line in full source context.
• Tab 2 — Exclude Rules, Presets & Export: Configure directory and extension
exclusion filters, optional PDF/Office document text search, manage saved
JSON grep presets, switch between English and Vietnamese UI, and export
full search results with context lines to formatted TXT or CSV reports.

SUPPORT & DONATE
• Created by Thanh Nguyen — <https://buymeacoffee.com/thanhnv128b>

---

## Install Context Line File Grep on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/context-line-grep/arch)

[### CentOS](https://snapcraft.io/install/context-line-grep/centos)

[### Debian](https://snapcraft.io/install/context-line-grep/debian)

[### elementary OS](https://snapcraft.io/install/context-line-grep/elementary)

[### Fedora](https://snapcraft.io/install/context-line-grep/fedora)

[### KDE Neon](https://snapcraft.io/install/context-line-grep/kde-neon)

[### Kubuntu](https://snapcraft.io/install/context-line-grep/kubuntu)

[### Manjaro](https://snapcraft.io/install/context-line-grep/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/context-line-grep/pop)

[### openSUSE](https://snapcraft.io/install/context-line-grep/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/context-line-grep/rhel)

[### Ubuntu](https://snapcraft.io/install/context-line-grep/ubuntu)
