Linux bfs command

About bfs

Short for "Big File Scanner," bfs is a modified version of the ed editor that is read-only and designed to process much larger files.


The purpose of bfs is to load, view and analyze 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 syntax

bfs [ - ] file name



Normally bfs displays information about the size of the file being viewed. If - (a single dash) is specified, bfs will suppresses this information.

file name

The name of the file that you want to view.

bfs examples

bfs myfile.txt

Loads and displays the file myfile.txt.

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


How to Install?