To avoid accidental changes to a file, use “view” or “less” instead of “vi” to view the contents of a file.