How to Create a File in Linux Command Description touch filename Creates a new empty file. > filename Also creates a new empty file (overwrites if it exists). vim filename Opens the file in Vim (creates it if it doesn't exist).