However, many ways exist to create a new file in Linux and Other CLIs.
But this one is the most convenient way with very minimal code
First, navigate the terminal to your desired location and then use this command
Here the Command
Username@deviceName ~ root directory
$ > filename.extension
Here, the Greater than '>' symbol is used to create new files
NOTE: You can create as many files as possible at once
Example:
Here I am creating files starting from No.1 to No.10 with a .js
extention
Username@deviceName ~ root directory
$ > file1.js file2.js file3.js file4.js file5.js file6.js file7.js file8.js file9.js file10.js
The intention is to make the users work more convenient and faster
Top comments (0)