Linux commands: touch
New Courses Coming Soon
Join the waiting lists
A quick guide to the touch command, used to create an empty file
You can create an empty file using the touch
command:
touch apple
If the file already exists, it opens the file in write mode, and the timestamp of the file is updated.
This command works on Linux, macOS, WSL, and anywhere you have a UNIX environment
→ Get my Linux Command Line Handbook
Here is how can I help you:
- COURSES where I teach everything I know
- CODING BOOTCAMP cohort course - next edition in 2025
- BOOKS 16 coding ebooks you can download for free on JS Python C PHP and lots more
- Follow me on X