COL(1)
๐ COL(1) โ the glow-up edition ๐
okay so bestie, welcome to col, a User Commands classic. she's giving quiet-luxury command-line filter energy and honestly? she eats. let's get into it.
โจ NAME โจ
col โ filter reverse line feeds from input ๐
๐ธ SYNOPSIS ๐ธ
col options
๐ฆ DESCRIPTION ๐ฆ
so here's the vibe: col filters out reverse (and half-reverse) line feeds so the output comes out in the correct order, with only forward and half-forward line feeds left. she also replaces any whitespace characters with tabs where possible. this is lowkey iconic when you're processing the output of nroff(1) and tbl(1). ๐
col reads from standard input and writes to standard output. that's it, that's the whole personality. ๐
๐ OPTIONS ๐
-b,--no-backspacesโ do not output any backspaces, bestie. just print the last character written to each column position. no rewinding, no take-backs. ๐-f,--fineโ permit half-forward line feeds. normally characters destined for a half-line boundary get printed on the following line instead. so this is the "actually, let me sit right on the line" option. โจ-h,--tabsโ output tabs instead of multiple spaces. crisp. clean. tab girl summer. ๐-l,--linesnumber โ buffer at least number lines in memory. by default,128lines are buffered. more lines = more brain space. ๐ง-p,--passโ force unknown control sequences to be passed through unchanged. normallycolfilters out any control sequences other than those she recognizes and interprets herself (the ones listed below ๐). no gatekeeping, just vibes.-x,--spacesโ output multiple spaces instead of tabs. the opposite of-h. pick your fighter. ๐ฅ-H,--helpโ display help text and exit. your girl is helpful fr fr. ๐ซถ-V,--versionโ display version and exit. main character announcement moment. โญ
๐ CONFORMING TO ๐
the col utility conforms to the Single UNIX Specification, Version 2. and just so you know โ the -l option is an extension to the standard. she's extra, but officially extra. ๐
๐ฅ NOTES ๐ฅ
the control sequences for carriage motion that col understands, plus their decimal values, are all listed here. take notes bestie, this is the lore:
- ESC-7 โ reverse line feed (escape then 7)
- ESC-8 โ half reverse line feed (escape then 8)
- ESC-9 โ half forward line feed (escape then 9)
- backspace โ moves back one column (8); ignored in the first column
- newline โ forward line feed (10); also does carriage return
- carriage return โ (13)
- shift in โ shift to normal character set (15)
- shift out โ shift to alternate character set (14)
- space โ moves forward one column (32)
- tab โ moves forward to next tab stop (9)
- vertical tab โ reverse line feed (11)
all unrecognized control characters and escape sequences are discarded. gone. blocked. ๐
col keeps track of the character set as characters are read, and makes sure the character set is correct when they are output. she's paying attention, always. ๐
if the input attempts to back up to the last flushed line, col will display a warning message. so likeโฆ don't do that. consider this your heads-up. โ ๏ธ
๐ HISTORY ๐
a col command appeared in Version 6 AT&T UNIX. vintage. archival. legendary. she's been that girl since the beginning. ๐
๐ SEE ALSO ๐
expand(1), nroff(1), tbl(1) โ go read those too, they're all in the group chat. ๐
๐ REPORTING BUGS ๐
for bug reports, use the issue tracker at:
https://github.com/util-linux/util-linux/issues
if something's broken, say it with your chest (politely, in the issue tracker). ๐
๐ AVAILABILITY ๐
the col command is part of the util-linux package, which can be downloaded from the Linux Kernel Archive at:
https://www.kernel.org/pub/linux/utils/util-linux/
okay that's the whole page, bestie. this one's util-linux 2.42.4, dated 2026-09-21, and it's giving COL(1) energy from start to finish. stay filtering, stay forward-line-feeding, and remember โ no reverse line feeds, no problems. periodt. ๐โจ๐ฆ๐ธ๐
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms