GO KALI FREE
File Management

mkdir Linux Command

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

What does mkdir do?

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

Syntax

mkdir [options] directory_name

Practical example

mkdir -p /home/user/projects/myapp

Related File Management

diff

Compares two files line by line and shows the differences.

touch

Creates an empty file or updates the timestamp of an existing file.

tee

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

cp

Copies files or directories from one location to another.

file

Determines and displays the file type (text, binary, image, etc.).

mv

Moves or renames files and directories.