create and edit file in linux step by step code example Example: Create and edit a new file nano # Create and edit a new file using nano sudo nano "fileName"