Ubuntu- Save terminal command output into a text file