implement create_file for Linux