edit file as root ubuntu code example Example: edit file as root ubuntu sudo -i gedit /folder_name/file_name