Linux command
vd 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open a CSV file
vd [file.csv]
Open a JSON file
vd [file.json]
Open multiple files
vd [file1.csv] [file2.xlsx]
Open from URL
vd [https://example.com/data.csv]
Pipe data from stdin
cat [file.csv] | vd
Open SQLite database
vd [database.db]
Specify filetype explicitly
vd -f json [file.txt]
Open with read-only mode
vd --readonly [file.csv]
说明
vd (VisiData) is a terminal-based spreadsheet and data exploration tool. It opens tabular data from many formats including CSV, JSON, Excel, SQLite, and remote URLs. Navigation uses vim-style keys. Sheets stack like buffers; q closes current sheet, returning to previous. The sheets sheet (S) shows all open sheets. Data analysis features include frequency tables (F), column statistics (I), and aggregations (+). Group rows with g prefix commands. Create pivot tables and perform joins between sheets. Selection (s/t/u) marks rows for operations. Use | to select by regex or , for exact match. " opens selected rows as new sheet. Changes can be saved back to files with Ctrl+s. Command logs enable reproducible transformations and batch processing with -b.
参数
- -f _filetype_
- Force input file type.
- -p _cmdlog_
- Replay a saved command log file within the interface.
- -b, --batch
- Run in batch mode (no interface): replay cmdlog and exit.
- -o _file_
- Save the final sheet to file on exit (used with -b).
- --readonly
- Disable saving/modifying.
- -d _delimiter_
- Field delimiter for text files.
- -c _cmdlog_
- Execute cmdlog file.
- --diff _file_
- Show diff between sources.
- -h, --help
- Display help information.
- -v, --version
- Display version information.
FAQ
What is the vd command used for?
vd (VisiData) is a terminal-based spreadsheet and data exploration tool. It opens tabular data from many formats including CSV, JSON, Excel, SQLite, and remote URLs. Navigation uses vim-style keys. Sheets stack like buffers; q closes current sheet, returning to previous. The sheets sheet (S) shows all open sheets. Data analysis features include frequency tables (F), column statistics (I), and aggregations (+). Group rows with g prefix commands. Create pivot tables and perform joins between sheets. Selection (s/t/u) marks rows for operations. Use | to select by regex or , for exact match. " opens selected rows as new sheet. Changes can be saved back to files with Ctrl+s. Command logs enable reproducible transformations and batch processing with -b.
How do I run a basic vd example?
Run `vd [file.csv]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _filetype_ do in vd?
Force input file type.