touch

The touch command is used to create files. To create files in the current folder, provide the file name and file extension.

Let's create a sample.txt file.

touch sample.txt

pwd

To create multiple files, add a space between the file names. Add a comma and a space for Windows.

touch info.txt profile.txt interest.txt

pwd

Last change: 2025-09-03, commit: 6636d47