Unix utils, duplicated in ruby code