touch
Program: touch
Makes empty files or sets their time to now.
Usage
touch [OPTION]... FILE...
Description
Set the access and modification time of each FILE to now. A FILE that does not exist is made, empty.
Options in the simulator
10 more options of the real program, not in the simulator yet
Examples
touch Documents/ideas.txt
ls -l Documents/ideas.txt
-rw-r--r-- 1 lerner lerner 0 Oct 17 09:00 Documents/ideas.txt touch TODO.md
ls -l TODO.md
-rw-r--r-- 1 lerner lerner 0 Oct 17 09:42 TODO.md ls -l todo.txt
-rw-r--r-- 1 lerner lerner 37 Oct 17 08:15 todo.txt
touch todo.txt
ls -l todo.txt
-rw-r--r-- 1 lerner lerner 37 Oct 17 09:00 todo.txt Where you learn it
Lessons
- Creating folders and files Terminal start
- Create, copy, move Linux Basics, Module 2: Files and directories