day 2 of exploring every binary in /usr/bin: [
The "[" character is an alias/synonym of the "test" command, which is used to evaluate a conditional expression.
The `test` command exits with a status of `0` or `1` based on whether the condition is true (1) or false (0)
You can use it to check and compare files, numbers, strings, and even shell variables
It comes out of the box with the `coreutils` package which includes all the basic shell commands like `ls`, `mkdir`, `chmod, `mv`, `rm`, etc
It *should* (source: trust me bro) exist on all linux/unix operating systems, and if not, I'm genuinely concerned
Unlike the `test` command, `[` requires a closing square bracket
day 1 of exploring every binary in /usr/bin: 4channels
4channels comes from `libraw`, a library for reading RAW files from digital cameras
the executable is a script in c that generates four .tiff files, one for each color channel (R, G, B, G2 (second green channel))
unfortunately I wasn't able to create an example because I don't know how to obtain a RAW file
I'm not sure why libraw is installed on my system (omarchy), but I'm pretty sure it has something to do with dhh liking to use older cameras
learn more about libraw:
libraw.org/
source code:
github.com/LibRaw/LibRaw/blo…