some small enhancement

1. more APIs in file systems
2. support output redirection
3. better 'ls' output