how to edit file in a bash command prompt code example Example: edit text file bash sudo nano file.text