3 ms·
This is pretty cool, I have find myself wanting a tool like this for ages. However, does anyone know of a pure open source alternative (just for Linux) ?
by gourneau 11y ago
This is pretty cool, I have find myself wanting a tool like this for ages. However, does anyone know of a pure open source alternative (just for Linux) ?
- 0x09 11y agoIt would not be terribly difficult to create a workalike on other * nixes as the task is effectively just mapping your filesystem's stat(2) metadata onto an SQLite db, with a virtual table representing file content and a user defined function that calls exec()* . SQLite gives you most of what you need here for free and makes the rest relatively easy. In fact a module containing the implementations for the latter can even be loaded directly into the existing sqlite3 cli. If you added an inotify daemon and FTS indexes you would have essentially a clone of Spotlight and other indexed filesystem search engines. * piping the filenames somewhat obviates this though
- cphoover 11y agohttps://osquery.io/ https://osquery.io/
- rakoo 11y agoA more unixy alternative to osquery is termsql (https://github.com/tobimensch/termsql https://github.com/tobimensch/termsql): it works with anything on the input, so it's a matter of "ls"-ing the correct folder and then using SQL to output what you want.
- mongol 11y agoI put up something similar here after experimenting with a related idea https://github.com/claes/osql https://github.com/claes/osql