2016-09-10

mindstalk: (lizqueen)
I've been reading a book of Caribbean history. So, in the 1800s slavery started getting abolished, and it was hard to still find workers on sugar plantations. Paying ex-slaves enough to work made the sugar more expensive than slave-produced sugar, and they were frankly not very enthusiastic about doing sugar work at any wage, preferring to be independent peasants, and who can blame them? There were various adaptations, for example Haiti tried inventing state socialism way early, conscripting the population into sugar work -- replacing private slavery with state slavery, woo.

Down in Trinidad, they somehow found it economical to import indentured laborers across the world from India. After 10 years the workers got a subsidized trip back to India, but many stayed; as a result Trinidad is now plurality (Asian) Indian, (38% or so), and also 18% Hindu. (Also 5% Muslim, and noticeable minorities of Bahai and Sikh.) I vaguely knew something like this had happened but not that there was a significantly Hindu-minority country south of the US. I feel kind of like when I discovered, in senior year of high school, that Belize existed and spoke English.

(I would swear that it simply never came up in my MacNeil-Lehrer watching childhood, unlike every other Central American country. And my parents' old globe probably had "Brit. Hond.")
mindstalk: (Default)
On IRC we'd been discussing procmail, and its lack of maintenance, and whether it *needs* maintenance other than security fixes. I snarked about wc not needing updates... then checked and found that its web page was dated Jan 2016, because GNU. This led to Ian complaining about ls having too many options, and he didn't even know about the dired output ones for emacs integration. I count about 56 options. That's a lot!

OTOH, I use a lot of them:

All my aliases use -F and -color=auto.
lt uses -ltr
Others use u, A, s, h, and d. That's 10.

I discovered L recently, and found it useful. Others on the list look interesting: --group-directories-first, R, S, X. 14 total! Still a fraction of the total, but I'm not going to say the others are useless.

Are they redundant with the Unix way? E.g. all the sort options could instead be piped to /bin/sort. OTOH that would be more verbose, and less efficient, especially for e.g. a numeric sort on filesize: easier to sort within ls, which has the numbers as numbers, rather than to print them as text to stdout, read them in again and convert, then print out again. Or more commonly, sorting by modification time, as a human readable thing? Ew.

*** Reference

-F: append / for directories and * for exectuables and @ for symlinks.
-color: colors by type
-l: detailed listing
-t: sorts by modification time, newest first
-r: reverses sort
-u: show last access time
-A: show dotfiles, but not . and ..
-s: show file size in blocks
-h: print size in human friendly form, like 4.3M
-d: shows properties of a directory, rather than its contents.
--group-directories-first: duh
-R: recursive
-S: sort by size, biggest first.
-X: sort by extension.

Profile

mindstalk: (Default)
mindstalk

May 2025

S M T W T F S
    123
45678910
11 121314151617
1819202122 23 24
25262728293031

Most Popular Tags

Expand Cut Tags

No cut tags

Style Credit

Page generated 2025-05-29 10:56
Powered by Dreamwidth Studios
OSZAR »