GO KALI FREE
File Management

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] filename

Practical example

touch newfile.txt

Related File Management

mkdir

Creates a new directory (folder). Use -p to create nested directories.

cp

Copies files or directories from one location to another.

diff

Compares two files line by line and shows the differences.

mv

Moves or renames files and directories.

tee

Reads from stdin and writes to both stdout and one or more files simultaneously.

rm

Removes (deletes) files or directories. Use -rf for recursive force delete.