News

For instance, if you want to create a new file in the home directory, type ”cd ~” in the terminal and press enter. Step 3: Create a new file. To create a new file in Linux, you can use the touch ...
Method 1: With the touch Command. You can type touch empty.txt to create an empty file in whatever directory you’re currently located in. If your command prompt defaults to the home directory, then ...