Shell / Commands

sort

English

Overview

A command for sorting text line by line.

Details

A command that sorts input line by line, supporting multiple sort orders such as lexicographic or numeric. Under the default lexicographic sort, "10" comes before "2," so sorting numbers correctly requires the -n option.

More Linux terms