$linuxjunkies
>

visidata(1)

VisiData is an interactive terminal spreadsheet tool for exploring, analyzing, and transforming tabular data from various formats.

UbuntuDebianFedoraArch

Synopsis

visidata [OPTIONS] [FILE]...

Description

VisiData is a powerful terminal-based data exploration and analysis tool that opens CSV, JSON, Excel, SQL databases, and many other formats as interactive spreadsheets. It provides vim-like navigation, quick filtering, sorting, and transformation capabilities without requiring programming knowledge.

The tool excels at rapidly exploring large datasets, discovering patterns, and cleaning data. It supports expressions, custom columns, aggregations, and pivot tables. Data can be saved back to the original format or exported to new formats.

Common options

FlagWhat it does
-f FORMATspecify file format explicitly (csv, json, xlsx, sqlite, etc.)
-p PROFILEload a named profile with saved settings and commands
--no-headertreat the first line as data, not column headers
-d DELIMITERspecify field delimiter for CSV input (default: comma)
--encoding ENCODINGspecify file encoding (default: utf-8)
-c COMMANDexecute a command on startup (can be used multiple times)
--play SCRIPTplay back a recorded script of keypresses and commands
--batchrun in batch mode without interactive UI (for automation)
--silentsuppress non-essential output and logging
-w WIDTHset maximum column width in characters

Examples

Open a CSV file interactively; navigate with arrow keys, press 'q' to quit

visidata data.csv

Open a JSON file, explicitly specifying format for faster loading

visidata -f json large.json

Open an Excel spreadsheet; cycle between sheets with 'gn' and 'gp'

visidata data.xlsx

Open a semicolon-delimited CSV file with explicit delimiter specification

visidata -d ';' semicolon-data.csv

Run VisiData non-interactively to filter and save results

visidata --batch -c 'select-regex col1 "pattern"' -c 'save out.csv' data.csv

Press '-' to filter column, '|' for regex filtering, 'c' to select columns

visidata data.csv

Replay saved keystrokes and commands from a previous session

visidata --play commands.vd data.csv

Connect to a PostgreSQL database and browse tables interactively

visidata 'postgresql:///dbname'

Related commands