how to modify file in linux code example Example 1: linux edit file sudo nano filename.ext Example 2: command to edit in terminal linux type nano followed by the file name