sort
sort is a Linux command in the Text Processing category, rated beginner difficulty. Sorts lines of text files alphabetically or numerically. The syntax is sort [options] [file]. Key options and parameters: file — file(s) to sort. It returns sorted output. A practical example: sort file.txt sort -n numbers.txt # Numeric sort sort -r file.txt # Reverse order sort -u file.txt # Unique (remove duplicates) sort -t, -k2 data.csv # Sort by 2nd column (comma-separated) A close relative is grep, which searches for patterns in files using regular expressions. A close relative is sed, which stream editor for filtering and transforming text. A close relative is awk, which powerful text processing language. Ideal for column-based data and reports. More about this category: Linux text processing commands — grep, sed, awk, sort, cut, tr, and more. Search, filter, transform, and format text content. Related Text Processing commands: grep, sed, awk, uniq, wc, cut, tr, tee.