You can create new files using the cat command:
cat
cat > new.txt
Using the appropriate command, create a file test.txt in the folder dir.
test.txt
dir