Linux bfs command

Updated: 11/06/2021 by Computer Hope
bfs command

On Unix-like operating systems, bfs is a modified version of the ed editor that is read-only, and designed to process large files.

Note

bfs is considered a Unix heirloom (legacy) program, and may not be available for installation by your operating system's package manager.

Description

bfs loads, views and analyzes large text files. It does not load the text into a buffer, and does not allow the contents to be modified.

The intended use of bfs is to examine a file to determine where it can be split into smaller files using csplit. The more manageable pieces can then be edited with ed.

Syntax

bfs [ - ] file name

Options

- Normally bfs displays information about the size of the file being viewed. If - (a single dash) is specified, bfs suppresses this information.
file name The name of the file that you want to view.

Examples

bfs myfile.txt

Loads and displays the file myfile.txt.

ed — A simple text editor.
csplit — Split files based on a defined context.