How to create a file in a directory in linux terminal is the todays tutorial. in this example i will show you how to create a file in linux. How to create a directory and how to create a file in this directory.
You can create file by invoking an editor on a new filename. Before you try this, there is an easier way to make a new empty file by using the touch
command. Such as
This command will make a new file named your_file_name
that is empty file.
You can create directory by invoking an editor on a new directory name. Before you try this, there is an easier way to make a new empty directory by using the mkdir
command. Such as
This command will make a new directory named your_directory_name
that is empty directory.
Hope it can help you.
#linux