CEPH-DIFF-SORTED(8)
π CEPH-DIFF-SORTED π
okay bestie, so this is the ceph-diff-sorted manual page from section 8 (that's the sysadmin/daemon section, iykyk) β and she is niche but she is serving. let's get into it π«Ά
β¨ NAME β¨
ceph-diff-sorted β compare two sorted files line by line πΈ
π¦ SYNOPSIS π¦
ceph-diff-sorted file1 file2
that's it. two files. two little arguments. slay. π
π DESCRIPTION π
so ceph-diff-sorted is a simplified diff utility β and the whole point of her is that she's optimized for comparing two files whose lines are lexically sorted. like, that's her entire vibe check. she needs the sortedness. it's not optional bestie, it's the assignment. β¨
the output is simplified compared to what you'd get from the standard diff tool that ships on POSIX systems. how simplified? she uses angle brackets β '<' and '>' β to show you lines that appear in one file but not the other. and listen: the output is not compatible with the patch tool. not even a little. don't try it. π
now why does she exist? tea time β β she was created to perform diffs of large files (like, the "containing billions of lines" kind of large) that the standard diff tool cannot handle efficiently. the trick is that if you already know the lines are sorted, you can do the whole comparison efficiently with minimal memory overhead. iconic behavior honestly. no cap. π§
β οΈ important: the sorting of each file needs to be done lexically. most POSIX systems use theLANGenvironment variable to determine thesorttool's sorting order, so to sort lexically you'd need something such as:
$ LANG=C sort some-file.txt >some-file-sorted.txt
write that down. actually don't, just remember it. π
π EXAMPLES π
compare two files, bestie, it's literally one line:
$ ceph-diff-sorted fileA.txt fileB.txt
that's the whole thing. go off. π₯
β EXIT STATUS β
when she's done, the exit status gets set to one of these lil guys β and yes, they all mean different things, so look at them:
0β files same β1β files different π«2β usage problem (e.g., wrong number of command-line arguments) π3β problem opening input file π4β bad file content (e.g., unsorted order or empty lines) π
π AVAILABILITY π
ceph-diff-sorted is part of Ceph β a massively scalable, open-source, distributed storage system. yes, that Ceph. she's a whole ecosystem. π«
please refer to the Ceph documentation at <https://docs.ceph.com> for more information. go read it, she ate. π
πΈ SEE ALSO πΈ
rgw-orphan-list <>(8)
π Copyright π
2010-2014, Inktank Storage, Inc. and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0). respect the license bestie, it's the rules π«Ά
and that's the page!! π this one's from the dev source, version-dated Aug 19, 2026, living in section 8 as CEPH-DIFF-SORTED(8). mwah. periodt. π
β¨
π¦ where this page comes from
- fedora 44: ceph-common 2:20.2.4-1.fc44 Β· LGPL-2.1-or-later AND LGPL-3.0-only AND CC-BY-SA-3.0 AND GPL-2.0-only AND BSL-1.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms