5 Easy Ways to Edit a Text File from Terminal (macOS)
In your macOS Terminal app type the name of the editor (e.g., nano) followed by a space and the filename to open. For example, run the following command to open my_file.txt in your folder My_Folder using the following command: Alternatively, you can also run open my_file.txt to open the app associated with the file type … Read more