Directory link counts and a find trick
In the beginning, Unix directories were remarkably non-special. Oneof the ways that they were non-special is that connections betweendirectories were not special in any way; a directory entry for adirectory was just a hard link to the directory's inode, the same aswith any other sort of inode. This applied to the two special names . and .. too; each of them was a regular directory entry, the first ahard link to the directory itself and the second a hard link to
Kiehl's Superbly Smoothing Argan Hair Collection
地點是銅鑼灣世貿的Hair Corner。
首先,聽聽別人介紹秋冬有甚麼髮型和
William Osler
Of course, my patient didn't believe me.
待意念之兔
When Linux's rp_filter might make sense
I wrote a grumpy entry about net.ipv4.conf.*.rp_filter setting back here , where I said that it didn't make anysense. Well, I can actually come up with one situation where it maymake sense: virtualization and thus virtualization networks.
One relatively common virtual machine setup is NAT-based, where thevirtual machines get IP addresses on a private virtual network on thehost. While the host doesn't route to its virtual network (or networks,if you
A find optimization and a piece of history, all in one
One of the floating pieces of modern Unix lore is that if you are doinga find that matches against both filenames and other properties of thefile, it's best to put the filename match first. That is, if you want tofind zero-sized object files the right order is:
find . -name '*.o' -size 0 -print
I called this a piece of modern Unix lore for good reason; this wasn'tnecessarily true in the old days (and even today it