顯示具有 find 標籤的文章。 顯示所有文章
顯示具有 find 標籤的文章。 顯示所有文章

2008年10月2日 星期四

Creat filesystem index for searhing purpose on Unix

if there are no updatedb and locate commands available, this is an alternative method on any unix-like os

1. using find to produce a list of all files' name and path

find / > fsindex

2. search for file

grep keyword fsindex