DEV Community

Cover image for Most Convenient way to create a new file
Shaik Mohammed Huzaifa
Shaik Mohammed Huzaifa

Posted on

Most Convenient way to create a new file

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
Enter fullscreen mode Exit fullscreen mode

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 
Enter fullscreen mode Exit fullscreen mode

The intention is to make the users work more convenient and faster

Top comments (0)

Cloudinary image

Zoom pan, gen fill, restore, overlay, upscale, crop, resize...

Chain advanced transformations through a set of image and video APIs while optimizing assets by 90%.

Explore

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay