touch Linux Command
Creates an empty file or updates the timestamp of an existing file.
What does touch do?
Creates an empty file or updates the timestamp of an existing file.
Syntax
touch [options] filenamePractical example
touch newfile.txtRelated File Management
mkdirCreates a new directory (folder). Use -p to create nested directories.
cpCopies files or directories from one location to another.
diffCompares two files line by line and shows the differences.
mvMoves or renames files and directories.
teeReads from stdin and writes to both stdout and one or more files simultaneously.
rmRemoves (deletes) files or directories. Use -rf for recursive force delete.