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.


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


bfs loads, views and analyzes very 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.


bfs [ - ] file name


- 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.


bfs myfile.txt

Loads and displays the file myfile.txt.

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