linux rewrites