touch
file managementLinux/Unix
The touch command is one of the most frequently used commands in Linux/Unix-like operating systems. touch Sample fallback description for touch
Quick Reference
Command Name:
touch
Category:
file management
Platform:
Linux/Unix
Basic Usage:
touch filename.txt
Common Use Cases
Syntax
touch [OPTION]... [FILE]...
Options
| Option | Description |
|---|---|
-l |
Use a long listing format |
-a |
Show hidden entries starting with . |
-h |
Human-readable sizes |
-R |
List subdirectories recursively |
Examples
How to Use These Examples
The examples below show common ways to use the touch command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.