Create File in Shell

Level 112 keystrokes

touch creates an empty file or updates the timestamp of an existing file.

Shell code

# Creates an empty app.js in the current directory if it does not exist
# If app.js already exists, its content is kept; only its access and modification times are updated
1touch app.js
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Shell code and how often they appear.

  • .× 1

More Shell examples at level 1

← Shell typing practice